Erro ao aplicar log 6980a470-09c5-48da-b584-b9ee8e8354dd: QueryFailedError: Duplicate entry 'd44ea62b-4559-40ae-9ef2-5c67758e7469' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd44ea62b-4559-40ae-9ef2-5c67758e7469',
    'CARNEIRO',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-04T21:31:44.154Z
  ],
  driverError: Error: Duplicate entry 'd44ea62b-4559-40ae-9ef2-5c67758e7469' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd44ea62b-4559-40ae-9ef2-5c67758e7469' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d44ea62b-4559-40ae-9ef2-5c67758e7469', 'CARNEIRO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:31:44.154', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd44ea62b-4559-40ae-9ef2-5c67758e7469' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d44ea62b-4559-40ae-9ef2-5c67758e7469', 'CARNEIRO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:31:44.154', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd44ea62b-4559-40ae-9ef2-5c67758e7469' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd44ea62b-4559-40ae-9ef2-5c67758e7469',
    'CARNEIRO',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-04T21:31:44.154Z
  ],
  driverError: Error: Duplicate entry 'd44ea62b-4559-40ae-9ef2-5c67758e7469' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd44ea62b-4559-40ae-9ef2-5c67758e7469' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d44ea62b-4559-40ae-9ef2-5c67758e7469', 'CARNEIRO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:31:44.154', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd44ea62b-4559-40ae-9ef2-5c67758e7469' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d44ea62b-4559-40ae-9ef2-5c67758e7469', 'CARNEIRO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:31:44.154', DEFAULT, DEFAULT)"
}
Erro ao aplicar log b181e0b3-3e62-4e1e-ab00-558727def7dc: QueryFailedError: Duplicate entry '2131a2cb-06c6-48f1-b48b-c30bdbe5b776' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2131a2cb-06c6-48f1-b48b-c30bdbe5b776',
    'GADO',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-04T21:48:34.629Z
  ],
  driverError: Error: Duplicate entry '2131a2cb-06c6-48f1-b48b-c30bdbe5b776' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2131a2cb-06c6-48f1-b48b-c30bdbe5b776' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2131a2cb-06c6-48f1-b48b-c30bdbe5b776', 'GADO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:48:34.629', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2131a2cb-06c6-48f1-b48b-c30bdbe5b776' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2131a2cb-06c6-48f1-b48b-c30bdbe5b776', 'GADO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:48:34.629', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2131a2cb-06c6-48f1-b48b-c30bdbe5b776' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2131a2cb-06c6-48f1-b48b-c30bdbe5b776',
    'GADO',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-04T21:48:34.629Z
  ],
  driverError: Error: Duplicate entry '2131a2cb-06c6-48f1-b48b-c30bdbe5b776' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2131a2cb-06c6-48f1-b48b-c30bdbe5b776' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2131a2cb-06c6-48f1-b48b-c30bdbe5b776', 'GADO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:48:34.629', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2131a2cb-06c6-48f1-b48b-c30bdbe5b776' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2131a2cb-06c6-48f1-b48b-c30bdbe5b776', 'GADO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:48:34.629', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1ffc1207-02ee-4cf8-930b-29c2e13e84cf: QueryFailedError: Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '56c807c3-fc43-414c-9fe1-b2330e7a389d',
    'Tacho Com Pernil Suino',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:46:25.644Z
  ],
  driverError: Error: Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('56c807c3-fc43-414c-9fe1-b2330e7a389d', 'Tacho Com Pernil Suino', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:46:25.644', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('56c807c3-fc43-414c-9fe1-b2330e7a389d', 'Tacho Com Pernil Suino', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:46:25.644', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '56c807c3-fc43-414c-9fe1-b2330e7a389d',
    'Tacho Com Pernil Suino',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:46:25.644Z
  ],
  driverError: Error: Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('56c807c3-fc43-414c-9fe1-b2330e7a389d', 'Tacho Com Pernil Suino', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:46:25.644', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('56c807c3-fc43-414c-9fe1-b2330e7a389d', 'Tacho Com Pernil Suino', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:46:25.644', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f0860646-4cfb-4ba0-bdd4-3a20de4b475f: QueryFailedError: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0ea8fc7e-fff6-4436-9970-e07f987b1b61',
    'BOLO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:40:44.554Z
  ],
  driverError: Error: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0ea8fc7e-fff6-4436-9970-e07f987b1b61',
    'BOLO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:40:44.554Z
  ],
  driverError: Error: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 03dfe076-b54a-41b6-958e-c3b2c0a5f053: QueryFailedError: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '070eed15-b100-4d30-b653-bfd3e986ccdd',
    'CUITELO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:43:00.798Z
  ],
  driverError: Error: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '070eed15-b100-4d30-b653-bfd3e986ccdd',
    'CUITELO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:43:00.798Z
  ],
  driverError: Error: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 84fbeb85-4d1b-428d-89c3-7813ab64a7b6: QueryFailedError: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '198cbed7-c07d-4212-9cda-da19d5bc86c7',
    'BOLO NINHO TRUFADO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:45:27.663Z
  ],
  driverError: Error: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '198cbed7-c07d-4212-9cda-da19d5bc86c7',
    'BOLO NINHO TRUFADO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:45:27.663Z
  ],
  driverError: Error: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
}
Erro ao aplicar log b3a24369-a205-447b-b258-49028a7ba4b7: QueryFailedError: Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ebf22047-9567-42f5-829f-20644e0e6a35',
    'BOLO OFICINA DO PAÇOCA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:25:40.100Z
  ],
  driverError: Error: Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ebf22047-9567-42f5-829f-20644e0e6a35', 'BOLO OFICINA DO PAÇOCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:25:40.100', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ebf22047-9567-42f5-829f-20644e0e6a35', 'BOLO OFICINA DO PAÇOCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:25:40.100', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ebf22047-9567-42f5-829f-20644e0e6a35',
    'BOLO OFICINA DO PAÇOCA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:25:40.100Z
  ],
  driverError: Error: Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ebf22047-9567-42f5-829f-20644e0e6a35', 'BOLO OFICINA DO PAÇOCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:25:40.100', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ebf22047-9567-42f5-829f-20644e0e6a35', 'BOLO OFICINA DO PAÇOCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:25:40.100', DEFAULT, DEFAULT)"
}
Erro ao aplicar log b2221bcb-31b1-4976-ac62-b4ce55597ac0: QueryFailedError: Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3f93d0f0-8ac6-4b44-b8eb-5af366045971',
    'CAIXA TERMICA COM HEINEKEN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:30:59.898Z
  ],
  driverError: Error: Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3f93d0f0-8ac6-4b44-b8eb-5af366045971', 'CAIXA TERMICA COM HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:30:59.898', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3f93d0f0-8ac6-4b44-b8eb-5af366045971', 'CAIXA TERMICA COM HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:30:59.898', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3f93d0f0-8ac6-4b44-b8eb-5af366045971',
    'CAIXA TERMICA COM HEINEKEN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:30:59.898Z
  ],
  driverError: Error: Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3f93d0f0-8ac6-4b44-b8eb-5af366045971', 'CAIXA TERMICA COM HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:30:59.898', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3f93d0f0-8ac6-4b44-b8eb-5af366045971', 'CAIXA TERMICA COM HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:30:59.898', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2788fe17-2ad9-4821-b055-999d048bc11c: QueryFailedError: Duplicate entry 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2',
    'FESTAO',
    'NOVA AMERICA',
    'ITAPOLIS',
    '/9j/4AAQSkZJRgABAQEBLAEsAAD/4QCCRXhpZgAASUkqAAgAAAADAA4BAgA4AAAAMgAAABoBBQABAAAAagAAABsBBQABAAAAcgAAAAAAAABTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLiwBAAABAAAALAEAAAEAAAD/4QWpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIj4KCTxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CgkJPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczpJcHRjNHhtcENvcmU9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBDb3JlLzEuMC94bWxucy8iICAgeG1sbnM6R2V0dHlJbWFnZXNHSUZUPSJodHRwOi8veG1wLmdldHR5aW1hZ2VzLmNvbS9naWZ0LzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGx1cz0iaHR0cDovL25zLnVzZXBsdXMub3JnL2xkZi94bXAvMS4wLyIgIHhtbG5zOmlwdGNFeHQ9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBFeHQvMjAwOC0wMi0yOS8iIHhtbG5zOnhtcFJpZ2h0cz0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3JpZ2h0cy8iIHBob3Rvc2hvcDpDcmVkaXQ9IkdldHR5IEltYWdlcyIgR2V0dHlJbWFnZXNHSUZUOkFzc2V0SUQ9IjExNjUyMzY5ODMiIHhtcFJpZ2h0czpXZWJTdGF0ZW1lbnQ9Imh0dHBzOi8vd3d3LmlzdG9ja3Bob3RvLmNvbS9sZWdhbC9saWNlbnNlLWFncmVlbWVudD91dG1fbWVkaXVtPW9yZ2FuaWMmYW1wO3V0bV9zb3VyY2U9Z29vZ2xlJmFtcDt1dG1fY2FtcGFpZ249aXB0Y3VybCIgcGx1czpEYXRhTWluaW5nPSJodHRwOi8vbnMudXNlcGx1cy5vcmcvbGRmL3ZvY2FiL0RNSS1QUk9ISUJJVEVELUVYQ0VQVFNFQVJDSEVOR0lORUlOREVYSU5HIiA+CjxkYzpjcmVhdG9yPjxyZGY6U2VxPjxyZGY6bGk+TGVhbmRyb1BQPC9yZGY6bGk+PC9yZGY6U2VxPjwvZGM6Y3JlYXRvcj48ZGM6ZGVzY3JpcHRpb24+PHJkZjpBbHQ+PHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5TdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLjwvcmRmOmxpPjwvcmRmOkFsdD48L2RjOmRlc2NyaXB0aW9uPgo8cGx1czpMaWNlbnNvcj48cmRmOlNlcT48cmRmOmxpIHJkZjpwYXJzZVR5cGU9J1Jlc291cmNlJz48cGx1czpMaWNlbnNvclVSTD5odHRwczovL3d3dy5pc3RvY2twaG90by5jb20vcGhvdG8vbGljZW5zZS1nbTExNjUyMzY5ODMtP3V0bV9tZWRpdW09b3JnYW5pYyZhbXA7dXRtX3NvdXJjZT1nb29nbGUmYW1wO3V0bV9jYW1wYWlnbj1pcHRjdXJsPC9wbHVzOkxpY2Vuc29yVVJMPjwvcmRmOmxpPjwvcmRmOlNlcT48L3BsdXM6TGljZW5zb3I+CgkJPC9yZGY6RGVzY3JpcHRpb24+Cgk8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJ3Ij8+Cv/tAHhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAXBwCUAAJTGVhbmRyb1BQHAJ4ADhTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLhwCbgAMR2V0dHkgSW1hZ2Vz/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8IAEQgCZAJkAwEiAAIRAQMRAf/EABsAAQACAwEBAAAAAAAAAAAAAAAFBgIDBAEH/8QAGQEBAAMBAQAAAAAAAAAAAAAAAAECAwQF/9oADAMBAAIQAxAAAAG5gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjOd3vF1UnMb1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaN3FzXy6Y7v577R6OIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGji7uHyOlnr3c9+73z33uMJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGPPjbdp06/P23asezC2nX185t2ceOiTy49vfhvHVQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjlx4Wx3ad3m68vnnvPth28fbejn6NGldXnvnPt1eebOjD3ojJDtrmO3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAADzg743z9t23Rv5Z5cd2rLXHt4u21WjfpvTTjsx59unN51c/P08fU06h7HMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjpHj4tdPVx9XBp7ydmg09vJ1waN+q9dOeHVnp7q28+mePVySOs5D1ecAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB56hH5Z6vG6WOxScffUmvLOGvIPcMh0b8M/Y5g1gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADDk7tXLfk9w88vozY4mWWv2JzYezGzZr7uzIPSxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAee4wi+OGw8zplsK5t1mazr2yVm3VjlpH0PrjpHpxDooAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhZqoQ4t/F3cu3H5w7LXSnLHkjr3alZW3fP7ppl2DWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGNDnK3nbt842d9PZDSN52Y8+VbdHXD9c5yfVGxiPpzHLagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADHKDKX3Qs9S0fjuwlo3Z6aa7GPtZ06+zXvjN1i1VbGbvZPm30janoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFEu8Hlah2as2tMHs3Kac+/Z5W3RFSGo0Y7emXTAWKAtjz/Sabc717xpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1nPEewPFpCW2q27WK577pnbfl7oh04e+ww0+4WTUb25Uz0Wn59e0TecFO9GYWAAAAAAAAAAAAAAAAAAAAAAAAAAAAK1ZaISXJXteF8rnTbfWa85ts6+dHuiDbySEuTJoJbdwSGdK9eKBn0Zzt6+d2m1Z0WAAAAAAAAAAAAAAAAAAAAAAAAAAAAR9Jt1dxtXR1U6bLCTHFrX92W+ddGrs1Q0MumWrT2YQ1y0TYKUpg9DDpsVZu/NewOfo1qAAAAAAAAAAAAAAAAAAAAAAAAAAA17KyU/SaQ96rtzXqvdryytEZebb7a8ssojm26umWGno8hrslasmdKhjcebalXHVncLZ8u+n0nIQAAAAAAAAAAAAAAAAAAAAAAAAAA8+Z3enxMT7K2OFUsnZXOa/JJREzpEVty5422Gk86OfoPMtO00zkHO1z4eyuXea0Tz6BVdqxN9hdUr8LQAAAAAAAAAAAAAAAAAAAAAAAAAPIVLvq8Vje4yPz2zVT0L7I4WpE/qy6I4+Xo52vRz9PMOjVuObo590tUvDzMZwl64ssXXHaa9pF5rlf8ALR9W3Qs1rULwAAAAAAAAAAAAAAAAAAAAAAAA4+yo5zWefdp3gJiY7eSH5r2jk1SvPeB0z/rWHkp+t5u2O47VKobbPw2QE43Wz7oDi23py82/R2UCYtVx+c3jnt3jSAAAAAAAAAAAAAAAAAAAAAAAANMF1ec19dNu8FWayO/KYi5ST5bxXZDTkTy+8+uNe/oi+ek2iNjdlZ6MuLZpGfRlD2y35yOSK/pyx681wql75r+6ejk5rWR573ZgAAAAAAAAAAAAAAAAAAAAAADRCkdFcwldo72xedt84837/Tx67hXePg14JWvWDopxeY7o0xw3aaXza9ssM/fYdUDPV/XC4dlFuHNemJqF78u+1cXb5+sZG4R3Zn9MkKbcpgJAAAAAAAAAAAAAAAAAAAAAAKtaPmRwnXd3YbdnLeT17ozC1m80Z5zQpPt4Oyjbu1Z6a+Pd5a2no5+szx8yiOyuWmKnKUnoiT57Z1uYhru6t2qp6Rt4bJXOim/6j8mvdosIgAAAAAAAAAAAAAAAAAAAAABC/PZ6BsScZsJeElenOsF2y+phzb9eim1yr9b3Z72SOlYfLTXjs5tpdfJvG7TtVle6LreMWqJipnoyxjJnZbkrm2e5r7d1Y7OJqlYr3SPrXsdI5gkAAAAAAAAAAAAAAAAAAAA5+itwpOJrFm995+Pmy7+uMy17dPJJVmK0bO3oyh9F8qeXdM1ywV6t93F18+04dHP0HkrFzWcRvvHclKrlZIO3Pt746Uyy59PHNaaxGzNbliovv4OrttNz+XfUIegAAAAAAAAAAAAAAAAAAAAfP7x8+hGOvk0T22FsvNh77y44174/T120828NojSv129U/W87HdenDSPz07tb6N+jfLZMwVgwir9HJZevDPRMe8kwmcVI7c/XlGdObzo4d1s6z4z7unD6TTpLKbkJAAAAAAAAAAAAAAAAAAAAVXphrL5+2XD1uDetdc5H92FQ5prR6GUpYvm+7mvaZP5/Z5ibpUlZ8L1Ht9WQW/z3a/P0c+88s1bmcq1uzS8bWJLRDct6zUh89ymfde2S68sJP2V49I+XPP3yqtojNIs2cHOevyhIAAAAAAAAAAAAAAAAABxdtQgmuvj8vo898x491Mm6r6/J0Yd8V1ZyuUR1VnpjJOZpMN70Qd4l5qoXXl0rOvLXtfLF7Fu/ux4ss9kPp97MpKOutbxns5N0LZIcHnu1Zbr4uHG1/e6fC7dvuPbvSr3Km2v2OPeLAAAAAAAAAAAAAAAAAAMaVY+DObFz9CXHs6IrG1J3yE9naoRc7ydNI231P6Dhak3it7M7S0XxbZiu3SKlJmC5+nRtOrr0ZLTUNPRmNIu5RfFetwgPIfG3X7aa8VmSjbd25wWuXsfNfikqjfb1592TWsbGWKoFzGkAAAAAAAAAAAAAAAAAAV+pbuaJkbFXMsZvVL1WWs1TbYq/E18292XvXcHm769nuNDXsoWkXOMrs3eM4uYjJvqzw33my1+wUnGn0aJqMwW/j27cJrUVa5HR81WKu9+XVPwFvwtTPpUby1Tde4MJjl24x20fV/YWamAkAAAAAAAAAAAAAAAA5OurFN8NI6b5Qpbi1m+2h2XOZTniJSk13bP0jopZOytWTOY2S176zwT9DsUTX+/R7159PJJQ2Wu7DD3RZafcabTO2ysPxc19NgrN20irTtflSLwh5voplauaL5NJfVrp+lfoFf4dFLRY9PCyXj5V9TpOQgAAAAAAAAAAAAAAAAo124+a/wA/5PpWvK/zdd4vetcTPJvThk43y0Xio8rGwdFLN5XMea4dNEnGddLTULaY/h2hvJjLeshS7bUqQHbl03ShZc989R0UWesM7W2qYoG7vtEUnJDG9T6Lz1YWot327YdQ7cgAAAAAAAAAAAAAAAMNG3Xx6ePWVsfM0NWO/wApbgi7H4Vj2zcNoh9Ur6QqbSg054RXdtxrPRCy0FtTZIREjvSSjJDDg2icZtpEJ7NiF3yeJweSEnCudsz7Dnz2qzrz99vGPvq0eZeJjpHoZAAAAAAAAAAAAAAAAasd/mU6fN/lLafNuOc4M8az49Q8ipWNrPE8THrwe+4+p938+dXkL28XZm6+TPSJ7Th75+rz3Gz14R68HszCz8T6ezHj32WPuXtowbfdI1Ny8eZGtQkAAAAAAAAAAAAAAAAAB49Qw82KTrrlni4QGUv6Q6YRMOmBCaLEtFYWby8VpZMitdE77WYXKYUmHTAh/JnwhbLyScxm2JY++rwEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/EADEQAAICAQMCBQMFAAICAwAAAAIDAQQABRESEBMUISIxUBUyMyAjJDRgNUFDgCVCRP/aAAgBAQABBQL/ANDJOMD0SJco/wAUQRsHqkY4x/ijZvkTtIHyj/EsLaNugTwL/EsHeOgRyL/D8xjO9hN3gR3yV5EyM97IaM5ExP8Ag5njG5Fh7ZGf9x7YzpGR7Cfn/gJmBiZ5lh/dt0j2xnvEdA+048gP/AN+4Ohfdv8AoZkZOB9vQZ3H56S81+2H90foZkdB+3N/NU7x89/2voz2ic/76MyJz3npGJ9vnp8j32LJjeMnqzouOhz5eXFP2/POjzn2j2w4jPLfoe23lkRt0P7veYjaPnvfCHjkF5blkzvMh5RvxiNp85Io2zlO0Fk+crDaP8AyNs98mYiNyjI9uU5vtnvm8xPnGT55v5jHGP8AAFG8cZGM888s8s8s8unnkYC5gv8ABH7b79PPrGTnngTvP+EmYGPFLnCubZ4zeQumeeO8otROLetmJ/whTAjqfIpXHoECPJFioEpiew2Irb8nRxKsW3+E1RshVvHJ2h27NblOMOe9EyEByJKPvtxG42Shn+DvvktTsed5QwIzEiSvJrOEKyoPk4d8Mp+k1Xd+t/gZmBGmyW6izj4phfsRPeEbey1v7cmfiGV28rcbbB/xOiN3X/gdXtdpOnNldguC2ny8MHkbZHuenGz/AB6v9nl25SXh6FOxNWxEwQ/PzO0WnzYsaZIxYtBC2g/ZSY5OmdzLhhedZLIWRnJkmACjmj2O4j5/VX9qnmlcO61JyfaUGc4jpIkOCXHP2iya85UEYr5p7+xc+f1aWMsZpwB2N549rlkqZGVw/cn95cAU52G5Ow5SiTY6AFwjJlSMjq/OnOw2XgynlBParK4ylnbM1LjFFsquX7yYgxkNs3VI0/OxZT2H6WXG0t4mz51kERNvprjPujlW00vtgowmTMF6UsngTP22ycFEzvNNkxa1AJC3p1tdYgLxED9vzZlCwpGxidRrSsgGTOz/AB9Pb5Hi1+opkzdgetcjt0qnxsaomdwGTOqma6qTp8T83rL+CUPFLNVf6VwRMszskh5HyBeDHLJIhhZecwRYB8c4hOVS7U6qJcFM7TSsrBBvkHxMFHzRH4vVWtlriKTJQkTbLeBYIcoREd1pcmYE71YXBdEN7I6pBSrORSK/3qGkv7tT5m63s1TEqlfpXEjfcZHic82SZREcCnOBZHICOIMSLlglxVqO7anSu3suoidS78y20HjNTehnXT5mLlwh8YPZzvLiPERGE7lkHtkWc745JILJ4+HtnvQ6LkYZ4tPhkNh6flzOFrayXN6bb5p0yFy7xi/Pvt6dvQyNiw42iQ/eyf6zpgNN2nbror/L5fWbHBPSsrvvVXUmAZ2tWvjEXC+4/Ss/IX/mw/wt8jdGzC/r2CGvp+mx/Cv01irpWdNexEwUfLXX+ItdKkmDi1NELRY43NQHa3tyaz1vOebnTu/J/rT5oL1IP8FwuzQoXBRFq14hW09dIsd2r8rqTuzTraeyxFqgVYdOEBpVu2hN+q0WVeHidSGe+r+yJcTR5vnznB86/L0B5pLzTfiIpLAmnTDwiUAAOuJ5X50ieFAiqah8rqzB8Qmwhg3LagzxAtieL81S2XFYdxmocoYv8uJ+7or7cX9pfi1ICJSHSh0TNkJbvlu8iDhqyC/YrsxRc1fKakzuXOlHUFIrJvdtHZCxlynFedRKfEB9+L/HhCQ4j8mL+0vxXeb1r09AD4mazUagtDLLYfY6aWzuU/k3tgJf52Oof8VT1ERDUHAypdZzwfuwPxKpcM5qvR2GV3YHsX2WG8rrLyFYp02dSsf2Oulu7Vb5O0/nq7fzdVf8UMSRRpVicdRJsRpk4OmRyFK15cFk2IBmVImaz6KmRGm4WlnMXKLHk+m2vGn/AN1/5+q5/wDjaTu/U+RacLXQDiCqiBK0AhY6J/4wD7Z/UGY3a1RXYZv4x2RcsdtGolubpqgN6wbfGOmYtNIVhNqxZvcHutk4NP8A7zfy9NNQma9ZC0BQ3TY+R1GzFYO8TImAbOqWEMHpViWVK+mCOWA7dimrlp9bzKPxh+DC5ZX/ADL/ACL/ABaeM+LsDAWKVNbqqaR1rkzvOLmBbJptKNmWL0Kd8jq7u5bnVo8NRsbVH6aZZMbTmmM42d42tshtnTgKa9T7w+xX2Jjd33JR96vvX+HTYknlGx6YyCrWmQut0rVDsygPALO94fUr1uLbKLu/U+PcyEpMpM8ruhFSJgoeXJ9Wqdo6unEFvUEzXZmlcudedpiNiX7jPAVltIRxgfIl/i03l2sGSifAQVKNLdKM0kv2LTxHL/8AdzRH7H8frT+K+henSaEPJs6ZX4aZWamYHdnJUAyRlmnPlbm+Vqf7KvefKcHyR/8Af2RXd4fTc0gk7REHECfZq6duxtQkKrFtauxtcxDZQ8Sgx+N9suP8RaxFdlgtQXKRpXEIWzUUCunffLCX2IsSpqS0n01P4965x8bP9r/wN/LgxvkTuJeVZhrDSqtErIophUe44nLMzRXV1HZh6jWHGkLH26bHR00d/crfG6o/s1OlG14Zt694jpEb4FZ+7nv5sOKuqAwGi4gRqtxQ90Z3sh+IvNcRvI/2B/BMc13JVXp0x4VNQtrhLN1UG+JsCamL6LOVMLVYmr005/YufG6u/u2+gLNkjQZkIrBnc2z3xo8lWJ7qMGe42+spV9ttf3bztE8ZVkf11qJuatA8JIpyIkiZ+5bwWEOT2WZNJZYyo9f6KL/EVPi3MhKSKSLPD10rlx7REkRMRXgUKcBUzyPIgD+JXoNflpMV39mYoF7j/c6B+H/wUwLxGqL4vDTu7VppIb6fMVpJuDSjJahBuAZgTIMkxZl9C67c0R2zPi9abxr9K893TcQntwcxUmqbGW7LuPRIcrGatP8AIoSzwvLuK32tHGx5/wDm25DQZzO93PFV/OvYiIVI8BWyVHYLnTXZIYQoRF6e0VcOb7rO7byq3s2fi9Wd3LvTSj/d81mNs4wvDPmZVWCAM57UQSj/AJTmXKQmZMPTXGancOZfc/8APk/11fl0/jFOw0nOrW3JwwsKrehg9k9kt7RGmpv4oQE3mzEz2q/XT3d6n8S9sJSiq27jark9K7O0+4OzhSw8LsLzxY8mVrzQ0yJC5PqfKxvZbTFexpj44uSKrOO/LhfiCdorCurTczuuo0FGiTNyLJb06dZ7ZcdqvA2KrMhMlExI5fntUcEZKVaZYZmjO4N+J1t+wVFdityxtKs7HaSwce56aTHtd00tQxG+2V9QriwZduAkSirWGZpsiFi4vhbmNpd743yjbdBCuvSWhrc0xTQyOQM8T4YKT1tFkCYNCFtiZiUXLEncrPt2laSoMAVqjectxNS+JQY/EH/M1frE'... 38788 more characters,
    2025-10-02T00:00:00.000Z,
    2025-10-05T00:00:00.000Z,
    2025-12-10T00:00:00.000Z,
    'COMISSAO',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-04T21:54:56.311Z
  ],
  driverError: Error: Duplicate entry 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad09d443-6e10-4ba4-a09d-ab63fc2f75a2', 'FESTAO', 'NOVA AMERICA', 'ITAPOLIS', '/9j/4AAQSkZJRgABAQEBLAEsAAD/4QCCRXhpZgAASUkqAAgAAAADAA4BAgA4AAAAMgAAABoBBQABAAAAagAAABsBBQABAAAAcgAAAAAAAABTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLiwBAAABAAAALAEAAAEAAAD/4QWpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIj4KCTxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CgkJPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczpJcHRjNHhtcENvcmU9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBDb3JlLzEuMC94bWxucy8iICAgeG1sbnM6R2V0dHlJbWFnZXNHSUZUPSJodHRwOi8veG1wLmdldHR5aW1hZ2VzLmNvbS9naWZ0LzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGx1cz0iaHR0cDovL25zLnVzZXBsdXMub3JnL2xkZi94bXAvMS4wLyIgIHhtbG5zOmlwdGNFeHQ9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBFeHQvMjAwOC0wMi0yOS8iIHhtbG5zOnhtcFJpZ2h0cz0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3JpZ2h0cy8iIHBob3Rvc2hvcDpDcmVkaXQ9IkdldHR5IEltYWdlcyIgR2V0dHlJbWFnZXNHSUZUOkFzc2V0SUQ9IjExNjUyMzY5ODMiIHhtcFJpZ2h0czpXZWJTdGF0ZW1lbnQ9Imh0dHBzOi8vd3d3LmlzdG9ja3Bob3RvLmNvbS9sZWdhbC9saWNlbnNlLWFncmVlbWVudD91dG1fbWVkaXVtPW9yZ2FuaWMmYW1wO3V0bV9zb3VyY2U9Z29vZ2xlJmFtcDt1dG1fY2FtcGFpZ249aXB0Y3VybCIgcGx1czpEYXRhTWluaW5nPSJodHRwOi8vbnMudXNlcGx1cy5vcmcvbGRmL3ZvY2FiL0RNSS1QUk9ISUJJVEVELUVYQ0VQVFNFQVJDSEVOR0lORUlOREVYSU5HIiA+CjxkYzpjcmVhdG9yPjxyZGY6U2VxPjxyZGY6bGk+TGVhbmRyb1BQPC9yZGY6bGk+PC9yZGY6U2VxPjwvZGM6Y3JlYXRvcj48ZGM6ZGVzY3JpcHRpb24+PHJkZjpBbHQ+PHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5TdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLjwvcmRmOmxpPjwvcmRmOkFsdD48L2RjOmRlc2NyaXB0aW9uPgo8cGx1czpMaWNlbnNvcj48cmRmOlNlcT48cmRmOmxpIHJkZjpwYXJzZVR5cGU9J1Jlc291cmNlJz48cGx1czpMaWNlbnNvclVSTD5odHRwczovL3d3dy5pc3RvY2twaG90by5jb20vcGhvdG8vbGljZW5zZS1nbTExNjUyMzY5ODMtP3V0bV9tZWRpdW09b3JnYW5pYyZhbXA7dXRtX3NvdXJjZT1nb29nbGUmYW1wO3V0bV9jYW1wYWlnbj1pcHRjdXJsPC9wbHVzOkxpY2Vuc29yVVJMPjwvcmRmOmxpPjwvcmRmOlNlcT48L3BsdXM6TGljZW5zb3I+CgkJPC9yZGY6RGVzY3JpcHRpb24+Cgk8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJ3Ij8+Cv/tAHhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAXBwCUAAJTGVhbmRyb1BQHAJ4ADhTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLhwCbgAMR2V0dHkgSW1hZ2Vz/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8IAEQgCZAJkAwEiAAIRAQMRAf/EABsAAQACAwEBAAAAAAAAAAAAAAAFBgIDBAEH/8QAGQEBAAMBAQAAAAAAAAAAAAAAAAECAwQF/9oADAMBAAIQAxAAAAG5gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjOd3vF1UnMb1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaN3FzXy6Y7v577R6OIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGji7uHyOlnr3c9+73z33uMJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGPPjbdp06/P23asezC2nX185t2ceOiTy49vfhvHVQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjlx4Wx3ad3m68vnnvPth28fbejn6NGldXnvnPt1eebOjD3ojJDtrmO3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAADzg743z9t23Rv5Z5cd2rLXHt4u21WjfpvTTjsx59unN51c/P08fU06h7HMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjpHj4tdPVx9XBp7ydmg09vJ1waN+q9dOeHVnp7q28+mePVySOs5D1ecAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB56hH5Z6vG6WOxScffUmvLOGvIPcMh0b8M/Y5g1gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADDk7tXLfk9w88vozY4mWWv2JzYezGzZr7uzIPSxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAee4wi+OGw8zplsK5t1mazr2yVm3VjlpH0PrjpHpxDooAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhZqoQ4t/F3cu3H5w7LXSnLHkjr3alZW3fP7ppl2DWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGNDnK3nbt842d9PZDSN52Y8+VbdHXD9c5yfVGxiPpzHLagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADHKDKX3Qs9S0fjuwlo3Z6aa7GPtZ06+zXvjN1i1VbGbvZPm30janoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFEu8Hlah2as2tMHs3Kac+/Z5W3RFSGo0Y7emXTAWKAtjz/Sabc717xpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1nPEewPFpCW2q27WK577pnbfl7oh04e+ww0+4WTUb25Uz0Wn59e0TecFO9GYWAAAAAAAAAAAAAAAAAAAAAAAAAAAAK1ZaISXJXteF8rnTbfWa85ts6+dHuiDbySEuTJoJbdwSGdK9eKBn0Zzt6+d2m1Z0WAAAAAAAAAAAAAAAAAAAAAAAAAAAAR9Jt1dxtXR1U6bLCTHFrX92W+ddGrs1Q0MumWrT2YQ1y0TYKUpg9DDpsVZu/NewOfo1qAAAAAAAAAAAAAAAAAAAAAAAAAAA17KyU/SaQ96rtzXqvdryytEZebb7a8ssojm26umWGno8hrslasmdKhjcebalXHVncLZ8u+n0nIQAAAAAAAAAAAAAAAAAAAAAAAAAA8+Z3enxMT7K2OFUsnZXOa/JJREzpEVty5422Gk86OfoPMtO00zkHO1z4eyuXea0Tz6BVdqxN9hdUr8LQAAAAAAAAAAAAAAAAAAAAAAAAAPIVLvq8Vje4yPz2zVT0L7I4WpE/qy6I4+Xo52vRz9PMOjVuObo590tUvDzMZwl64ssXXHaa9pF5rlf8ALR9W3Qs1rULwAAAAAAAAAAAAAAAAAAAAAAAA4+yo5zWefdp3gJiY7eSH5r2jk1SvPeB0z/rWHkp+t5u2O47VKobbPw2QE43Wz7oDi23py82/R2UCYtVx+c3jnt3jSAAAAAAAAAAAAAAAAAAAAAAAANMF1ec19dNu8FWayO/KYi5ST5bxXZDTkTy+8+uNe/oi+ek2iNjdlZ6MuLZpGfRlD2y35yOSK/pyx681wql75r+6ejk5rWR573ZgAAAAAAAAAAAAAAAAAAAAAADRCkdFcwldo72xedt84837/Tx67hXePg14JWvWDopxeY7o0xw3aaXza9ssM/fYdUDPV/XC4dlFuHNemJqF78u+1cXb5+sZG4R3Zn9MkKbcpgJAAAAAAAAAAAAAAAAAAAAAAKtaPmRwnXd3YbdnLeT17ozC1m80Z5zQpPt4Oyjbu1Z6a+Pd5a2no5+szx8yiOyuWmKnKUnoiT57Z1uYhru6t2qp6Rt4bJXOim/6j8mvdosIgAAAAAAAAAAAAAAAAAAAAABC/PZ6BsScZsJeElenOsF2y+phzb9eim1yr9b3Z72SOlYfLTXjs5tpdfJvG7TtVle6LreMWqJipnoyxjJnZbkrm2e5r7d1Y7OJqlYr3SPrXsdI5gkAAAAAAAAAAAAAAAAAAAA5+itwpOJrFm995+Pmy7+uMy17dPJJVmK0bO3oyh9F8qeXdM1ywV6t93F18+04dHP0HkrFzWcRvvHclKrlZIO3Pt746Uyy59PHNaaxGzNbliovv4OrttNz+XfUIegAAAAAAAAAAAAAAAAAAAAfP7x8+hGOvk0T22FsvNh77y44174/T120828NojSv129U/W87HdenDSPz07tb6N+jfLZMwVgwir9HJZevDPRMe8kwmcVI7c/XlGdObzo4d1s6z4z7unD6TTpLKbkJAAAAAAAAAAAAAAAAAAAAVXphrL5+2XD1uDetdc5H92FQ5prR6GUpYvm+7mvaZP5/Z5ibpUlZ8L1Ht9WQW/z3a/P0c+88s1bmcq1uzS8bWJLRDct6zUh89ymfde2S68sJP2V49I+XPP3yqtojNIs2cHOevyhIAAAAAAAAAAAAAAAAABxdtQgmuvj8vo898x491Mm6r6/J0Yd8V1ZyuUR1VnpjJOZpMN70Qd4l5qoXXl0rOvLXtfLF7Fu/ux4ss9kPp97MpKOutbxns5N0LZIcHnu1Zbr4uHG1/e6fC7dvuPbvSr3Km2v2OPeLAAAAAAAAAAAAAAAAAAMaVY+DObFz9CXHs6IrG1J3yE9naoRc7ydNI231P6Dhak3it7M7S0XxbZiu3SKlJmC5+nRtOrr0ZLTUNPRmNIu5RfFetwgPIfG3X7aa8VmSjbd25wWuXsfNfikqjfb1592TWsbGWKoFzGkAAAAAAAAAAAAAAAAAAV+pbuaJkbFXMsZvVL1WWs1TbYq/E18292XvXcHm769nuNDXsoWkXOMrs3eM4uYjJvqzw33my1+wUnGn0aJqMwW/j27cJrUVa5HR81WKu9+XVPwFvwtTPpUby1Tde4MJjl24x20fV/YWamAkAAAAAAAAAAAAAAAA5OurFN8NI6b5Qpbi1m+2h2XOZTniJSk13bP0jopZOytWTOY2S176zwT9DsUTX+/R7159PJJQ2Wu7DD3RZafcabTO2ysPxc19NgrN20irTtflSLwh5voplauaL5NJfVrp+lfoFf4dFLRY9PCyXj5V9TpOQgAAAAAAAAAAAAAAAAo124+a/wA/5PpWvK/zdd4vetcTPJvThk43y0Xio8rGwdFLN5XMea4dNEnGddLTULaY/h2hvJjLeshS7bUqQHbl03ShZc989R0UWesM7W2qYoG7vtEUnJDG9T6Lz1YWot327YdQ7cgAAAAAAAAAAAAAAAMNG3Xx6ePWVsfM0NWO/wApbgi7H4Vj2zcNoh9Ur6QqbSg054RXdtxrPRCy0FtTZIREjvSSjJDDg2icZtpEJ7NiF3yeJweSEnCudsz7Dnz2qzrz99vGPvq0eZeJjpHoZAAAAAAAAAAAAAAAAasd/mU6fN/lLafNuOc4M8az49Q8ipWNrPE8THrwe+4+p938+dXkL28XZm6+TPSJ7Th75+rz3Gz14R68HszCz8T6ezHj32WPuXtowbfdI1Ny8eZGtQkAAAAAAAAAAAAAAAAAB49Qw82KTrrlni4QGUv6Q6YRMOmBCaLEtFYWby8VpZMitdE77WYXKYUmHTAh/JnwhbLyScxm2JY++rwEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/EADEQAAICAQMCBQMFAAICAwAAAAIDAQQABRESEBMUISIxUBUyMyAjJDRgNUFDgCVCRP/aAAgBAQABBQL/ANDJOMD0SJco/wAUQRsHqkY4x/ijZvkTtIHyj/EsLaNugTwL/EsHeOgRyL/D8xjO9hN3gR3yV5EyM97IaM5ExP8Ag5njG5Fh7ZGf9x7YzpGR7Cfn/gJmBiZ5lh/dt0j2xnvEdA+048gP/AN+4Ohfdv8AoZkZOB9vQZ3H56S81+2H90foZkdB+3N/NU7x89/2voz2ic/76MyJz3npGJ9vnp8j32LJjeMnqzouOhz5eXFP2/POjzn2j2w4jPLfoe23lkRt0P7veYjaPnvfCHjkF5blkzvMh5RvxiNp85Io2zlO0Fk+crDaP8AyNs98mYiNyjI9uU5vtnvm8xPnGT55v5jHGP8AAFG8cZGM888s8s8s8unnkYC5gv8ABH7b79PPrGTnngTvP+EmYGPFLnCubZ4zeQumeeO8otROLetmJ/whTAjqfIpXHoECPJFioEpiew2Irb8nRxKsW3+E1RshVvHJ2h27NblOMOe9EyEByJKPvtxG42Shn+DvvktTsed5QwIzEiSvJrOEKyoPk4d8Mp+k1Xd+t/gZmBGmyW6izj4phfsRPeEbey1v7cmfiGV28rcbbB/xOiN3X/gdXtdpOnNldguC2ny8MHkbZHuenGz/AB6v9nl25SXh6FOxNWxEwQ/PzO0WnzYsaZIxYtBC2g/ZSY5OmdzLhhedZLIWRnJkmACjmj2O4j5/VX9qnmlcO61JyfaUGc4jpIkOCXHP2iya85UEYr5p7+xc+f1aWMsZpwB2N549rlkqZGVw/cn95cAU52G5Ow5SiTY6AFwjJlSMjq/OnOw2XgynlBParK4ylnbM1LjFFsquX7yYgxkNs3VI0/OxZT2H6WXG0t4mz51kERNvprjPujlW00vtgowmTMF6UsngTP22ycFEzvNNkxa1AJC3p1tdYgLxED9vzZlCwpGxidRrSsgGTOz/AB9Pb5Hi1+opkzdgetcjt0qnxsaomdwGTOqma6qTp8T83rL+CUPFLNVf6VwRMszskh5HyBeDHLJIhhZecwRYB8c4hOVS7U6qJcFM7TSsrBBvkHxMFHzRH4vVWtlriKTJQkTbLeBYIcoREd1pcmYE71YXBdEN7I6pBSrORSK/3qGkv7tT5m63s1TEqlfpXEjfcZHic82SZREcCnOBZHICOIMSLlglxVqO7anSu3suoidS78y20HjNTehnXT5mLlwh8YPZzvLiPERGE7lkHtkWc745JILJ4+HtnvQ6LkYZ4tPhkNh6flzOFrayXN6bb5p0yFy7xi/Pvt6dvQyNiw42iQ/eyf6zpgNN2nbror/L5fWbHBPSsrvvVXUmAZ2tWvjEXC+4/Ss/IX/mw/wt8jdGzC/r2CGvp+mx/Cv01irpWdNexEwUfLXX+ItdKkmDi1NELRY43NQHa3tyaz1vOebnTu/J/rT5oL1IP8FwuzQoXBRFq14hW09dIsd2r8rqTuzTraeyxFqgVYdOEBpVu2hN+q0WVeHidSGe+r+yJcTR5vnznB86/L0B5pLzTfiIpLAmnTDwiUAAOuJ5X50ieFAiqah8rqzB8Qmwhg3LagzxAtieL81S2XFYdxmocoYv8uJ+7or7cX9pfi1ICJSHSh0TNkJbvlu8iDhqyC/YrsxRc1fKakzuXOlHUFIrJvdtHZCxlynFedRKfEB9+L/HhCQ4j8mL+0vxXeb1r09AD4mazUagtDLLYfY6aWzuU/k3tgJf52Oof8VT1ERDUHAypdZzwfuwPxKpcM5qvR2GV3YHsX2WG8rrLyFYp02dSsf2Oulu7Vb5O0/nq7fzdVf8UMSRRpVicdRJsRpk4OmRyFK15cFk2IBmVImaz6KmRGm4WlnMXKLHk+m2vGn/AN1/5+q5/wDjaTu/U+RacLXQDiCqiBK0AhY6J/4wD7Z/UGY3a1RXYZv4x2RcsdtGolubpqgN6wbfGOmYtNIVhNqxZvcHutk4NP8A7zfy9NNQma9ZC0BQ3TY+R1GzFYO8TImAbOqWEMHpViWVK+mCOWA7dimrlp9bzKPxh+DC5ZX/ADL/ACL/ABaeM+LsDAWKVNbqqaR1rkzvOLmBbJptKNmWL0Kd8jq7u5bnVo8NRsbVH6aZZMbTmmM42d42tshtnTgKa9T7w+xX2Jjd33JR96vvX+HTYknlGx6YyCrWmQut0rVDsygPALO94fUr1uLbKLu/U+PcyEpMpM8ruhFSJgoeXJ9Wqdo6unEFvUEzXZmlcudedpiNiX7jPAVltIRxgfIl/i03l2sGSifAQVKNLdKM0kv2LTxHL/8AdzRH7H8frT+K+henSaEPJs6ZX4aZWamYHdnJUAyRlmnPlbm+Vqf7KvefKcHyR/8Af2RXd4fTc0gk7REHECfZq6duxtQkKrFtauxtcxDZQ8Sgx+N9suP8RaxFdlgtQXKRpXEIWzUUCunffLCX2IsSpqS0n01P4965x8bP9r/wN/LgxvkTuJeVZhrDSqtErIophUe44nLMzRXV1HZh6jWHGkLH26bHR00d/crfG6o/s1OlG14Zt694jpEb4FZ+7nv5sOKuqAwGi4gRqtxQ90Z3sh+IvNcRvI/2B/BMc13JVXp0x4VNQtrhLN1UG+JsCamL6LOVMLVYmr005/YufG6u/u2+gLNkjQZkIrBnc2z3xo8lWJ7qMGe42+spV9ttf3bztE8ZVkf11qJuatA8JIpyIkiZ+5bwWEOT2WZNJZYyo9f6KL/EVPi3MhKSKSLPD10rlx7REkRMRXgUKcBUzyPIgD+JXoNflpMV39mYoF7j/c6B+H/wUwLxGqL4vDTu7VppIb6fMVpJuDSjJahBuAZgTIMkxZl9C67c0R2zPi9abxr9K893TcQntwcxUmqbGW7LuPRIcrGatP8AIoSzwvLuK32tHGx5/wDm25DQZzO93PFV/OvYiIVI8BWyVHYLnTXZIYQoRF6e0VcOb7rO7byq3s2fi9Wd3LvTSj/d81mNs4wvDPmZVWCAM57UQSj/AJTmXKQmZMPTXGancOZfc/8APk/11fl0/jFOw0nOrW3JwwsKrehg9k9kt7RGmpv4oQE3mzEz2q/XT3d"... 39253 more characters
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad09d443-6e10-4ba4-a09d-ab63fc2f75a2', 'FESTAO', 'NOVA AMERICA', 'ITAPOLIS', '/9j/4AAQSkZJRgABAQEBLAEsAAD/4QCCRXhpZgAASUkqAAgAAAADAA4BAgA4AAAAMgAAABoBBQABAAAAagAAABsBBQABAAAAcgAAAAAAAABTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLiwBAAABAAAALAEAAAEAAAD/4QWpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIj4KCTxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CgkJPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczpJcHRjNHhtcENvcmU9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBDb3JlLzEuMC94bWxucy8iICAgeG1sbnM6R2V0dHlJbWFnZXNHSUZUPSJodHRwOi8veG1wLmdldHR5aW1hZ2VzLmNvbS9naWZ0LzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGx1cz0iaHR0cDovL25zLnVzZXBsdXMub3JnL2xkZi94bXAvMS4wLyIgIHhtbG5zOmlwdGNFeHQ9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBFeHQvMjAwOC0wMi0yOS8iIHhtbG5zOnhtcFJpZ2h0cz0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3JpZ2h0cy8iIHBob3Rvc2hvcDpDcmVkaXQ9IkdldHR5IEltYWdlcyIgR2V0dHlJbWFnZXNHSUZUOkFzc2V0SUQ9IjExNjUyMzY5ODMiIHhtcFJpZ2h0czpXZWJTdGF0ZW1lbnQ9Imh0dHBzOi8vd3d3LmlzdG9ja3Bob3RvLmNvbS9sZWdhbC9saWNlbnNlLWFncmVlbWVudD91dG1fbWVkaXVtPW9yZ2FuaWMmYW1wO3V0bV9zb3VyY2U9Z29vZ2xlJmFtcDt1dG1fY2FtcGFpZ249aXB0Y3VybCIgcGx1czpEYXRhTWluaW5nPSJodHRwOi8vbnMudXNlcGx1cy5vcmcvbGRmL3ZvY2FiL0RNSS1QUk9ISUJJVEVELUVYQ0VQVFNFQVJDSEVOR0lORUlOREVYSU5HIiA+CjxkYzpjcmVhdG9yPjxyZGY6U2VxPjxyZGY6bGk+TGVhbmRyb1BQPC9yZGY6bGk+PC9yZGY6U2VxPjwvZGM6Y3JlYXRvcj48ZGM6ZGVzY3JpcHRpb24+PHJkZjpBbHQ+PHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5TdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLjwvcmRmOmxpPjwvcmRmOkFsdD48L2RjOmRlc2NyaXB0aW9uPgo8cGx1czpMaWNlbnNvcj48cmRmOlNlcT48cmRmOmxpIHJkZjpwYXJzZVR5cGU9J1Jlc291cmNlJz48cGx1czpMaWNlbnNvclVSTD5odHRwczovL3d3dy5pc3RvY2twaG90by5jb20vcGhvdG8vbGljZW5zZS1nbTExNjUyMzY5ODMtP3V0bV9tZWRpdW09b3JnYW5pYyZhbXA7dXRtX3NvdXJjZT1nb29nbGUmYW1wO3V0bV9jYW1wYWlnbj1pcHRjdXJsPC9wbHVzOkxpY2Vuc29yVVJMPjwvcmRmOmxpPjwvcmRmOlNlcT48L3BsdXM6TGljZW5zb3I+CgkJPC9yZGY6RGVzY3JpcHRpb24+Cgk8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJ3Ij8+Cv/tAHhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAXBwCUAAJTGVhbmRyb1BQHAJ4ADhTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLhwCbgAMR2V0dHkgSW1hZ2Vz/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8IAEQgCZAJkAwEiAAIRAQMRAf/EABsAAQACAwEBAAAAAAAAAAAAAAAFBgIDBAEH/8QAGQEBAAMBAQAAAAAAAAAAAAAAAAECAwQF/9oADAMBAAIQAxAAAAG5gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjOd3vF1UnMb1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaN3FzXy6Y7v577R6OIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGji7uHyOlnr3c9+73z33uMJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGPPjbdp06/P23asezC2nX185t2ceOiTy49vfhvHVQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjlx4Wx3ad3m68vnnvPth28fbejn6NGldXnvnPt1eebOjD3ojJDtrmO3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAADzg743z9t23Rv5Z5cd2rLXHt4u21WjfpvTTjsx59unN51c/P08fU06h7HMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjpHj4tdPVx9XBp7ydmg09vJ1waN+q9dOeHVnp7q28+mePVySOs5D1ecAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB56hH5Z6vG6WOxScffUmvLOGvIPcMh0b8M/Y5g1gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADDk7tXLfk9w88vozY4mWWv2JzYezGzZr7uzIPSxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAee4wi+OGw8zplsK5t1mazr2yVm3VjlpH0PrjpHpxDooAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhZqoQ4t/F3cu3H5w7LXSnLHkjr3alZW3fP7ppl2DWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGNDnK3nbt842d9PZDSN52Y8+VbdHXD9c5yfVGxiPpzHLagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADHKDKX3Qs9S0fjuwlo3Z6aa7GPtZ06+zXvjN1i1VbGbvZPm30janoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFEu8Hlah2as2tMHs3Kac+/Z5W3RFSGo0Y7emXTAWKAtjz/Sabc717xpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1nPEewPFpCW2q27WK577pnbfl7oh04e+ww0+4WTUb25Uz0Wn59e0TecFO9GYWAAAAAAAAAAAAAAAAAAAAAAAAAAAAK1ZaISXJXteF8rnTbfWa85ts6+dHuiDbySEuTJoJbdwSGdK9eKBn0Zzt6+d2m1Z0WAAAAAAAAAAAAAAAAAAAAAAAAAAAAR9Jt1dxtXR1U6bLCTHFrX92W+ddGrs1Q0MumWrT2YQ1y0TYKUpg9DDpsVZu/NewOfo1qAAAAAAAAAAAAAAAAAAAAAAAAAAA17KyU/SaQ96rtzXqvdryytEZebb7a8ssojm26umWGno8hrslasmdKhjcebalXHVncLZ8u+n0nIQAAAAAAAAAAAAAAAAAAAAAAAAAA8+Z3enxMT7K2OFUsnZXOa/JJREzpEVty5422Gk86OfoPMtO00zkHO1z4eyuXea0Tz6BVdqxN9hdUr8LQAAAAAAAAAAAAAAAAAAAAAAAAAPIVLvq8Vje4yPz2zVT0L7I4WpE/qy6I4+Xo52vRz9PMOjVuObo590tUvDzMZwl64ssXXHaa9pF5rlf8ALR9W3Qs1rULwAAAAAAAAAAAAAAAAAAAAAAAA4+yo5zWefdp3gJiY7eSH5r2jk1SvPeB0z/rWHkp+t5u2O47VKobbPw2QE43Wz7oDi23py82/R2UCYtVx+c3jnt3jSAAAAAAAAAAAAAAAAAAAAAAAANMF1ec19dNu8FWayO/KYi5ST5bxXZDTkTy+8+uNe/oi+ek2iNjdlZ6MuLZpGfRlD2y35yOSK/pyx681wql75r+6ejk5rWR573ZgAAAAAAAAAAAAAAAAAAAAAADRCkdFcwldo72xedt84837/Tx67hXePg14JWvWDopxeY7o0xw3aaXza9ssM/fYdUDPV/XC4dlFuHNemJqF78u+1cXb5+sZG4R3Zn9MkKbcpgJAAAAAAAAAAAAAAAAAAAAAAKtaPmRwnXd3YbdnLeT17ozC1m80Z5zQpPt4Oyjbu1Z6a+Pd5a2no5+szx8yiOyuWmKnKUnoiT57Z1uYhru6t2qp6Rt4bJXOim/6j8mvdosIgAAAAAAAAAAAAAAAAAAAAABC/PZ6BsScZsJeElenOsF2y+phzb9eim1yr9b3Z72SOlYfLTXjs5tpdfJvG7TtVle6LreMWqJipnoyxjJnZbkrm2e5r7d1Y7OJqlYr3SPrXsdI5gkAAAAAAAAAAAAAAAAAAAA5+itwpOJrFm995+Pmy7+uMy17dPJJVmK0bO3oyh9F8qeXdM1ywV6t93F18+04dHP0HkrFzWcRvvHclKrlZIO3Pt746Uyy59PHNaaxGzNbliovv4OrttNz+XfUIegAAAAAAAAAAAAAAAAAAAAfP7x8+hGOvk0T22FsvNh77y44174/T120828NojSv129U/W87HdenDSPz07tb6N+jfLZMwVgwir9HJZevDPRMe8kwmcVI7c/XlGdObzo4d1s6z4z7unD6TTpLKbkJAAAAAAAAAAAAAAAAAAAAVXphrL5+2XD1uDetdc5H92FQ5prR6GUpYvm+7mvaZP5/Z5ibpUlZ8L1Ht9WQW/z3a/P0c+88s1bmcq1uzS8bWJLRDct6zUh89ymfde2S68sJP2V49I+XPP3yqtojNIs2cHOevyhIAAAAAAAAAAAAAAAAABxdtQgmuvj8vo898x491Mm6r6/J0Yd8V1ZyuUR1VnpjJOZpMN70Qd4l5qoXXl0rOvLXtfLF7Fu/ux4ss9kPp97MpKOutbxns5N0LZIcHnu1Zbr4uHG1/e6fC7dvuPbvSr3Km2v2OPeLAAAAAAAAAAAAAAAAAAMaVY+DObFz9CXHs6IrG1J3yE9naoRc7ydNI231P6Dhak3it7M7S0XxbZiu3SKlJmC5+nRtOrr0ZLTUNPRmNIu5RfFetwgPIfG3X7aa8VmSjbd25wWuXsfNfikqjfb1592TWsbGWKoFzGkAAAAAAAAAAAAAAAAAAV+pbuaJkbFXMsZvVL1WWs1TbYq/E18292XvXcHm769nuNDXsoWkXOMrs3eM4uYjJvqzw33my1+wUnGn0aJqMwW/j27cJrUVa5HR81WKu9+XVPwFvwtTPpUby1Tde4MJjl24x20fV/YWamAkAAAAAAAAAAAAAAAA5OurFN8NI6b5Qpbi1m+2h2XOZTniJSk13bP0jopZOytWTOY2S176zwT9DsUTX+/R7159PJJQ2Wu7DD3RZafcabTO2ysPxc19NgrN20irTtflSLwh5voplauaL5NJfVrp+lfoFf4dFLRY9PCyXj5V9TpOQgAAAAAAAAAAAAAAAAo124+a/wA/5PpWvK/zdd4vetcTPJvThk43y0Xio8rGwdFLN5XMea4dNEnGddLTULaY/h2hvJjLeshS7bUqQHbl03ShZc989R0UWesM7W2qYoG7vtEUnJDG9T6Lz1YWot327YdQ7cgAAAAAAAAAAAAAAAMNG3Xx6ePWVsfM0NWO/wApbgi7H4Vj2zcNoh9Ur6QqbSg054RXdtxrPRCy0FtTZIREjvSSjJDDg2icZtpEJ7NiF3yeJweSEnCudsz7Dnz2qzrz99vGPvq0eZeJjpHoZAAAAAAAAAAAAAAAAasd/mU6fN/lLafNuOc4M8az49Q8ipWNrPE8THrwe+4+p938+dXkL28XZm6+TPSJ7Th75+rz3Gz14R68HszCz8T6ezHj32WPuXtowbfdI1Ny8eZGtQkAAAAAAAAAAAAAAAAAB49Qw82KTrrlni4QGUv6Q6YRMOmBCaLEtFYWby8VpZMitdE77WYXKYUmHTAh/JnwhbLyScxm2JY++rwEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/EADEQAAICAQMCBQMFAAICAwAAAAIDAQQABRESEBMUISIxUBUyMyAjJDRgNUFDgCVCRP/aAAgBAQABBQL/ANDJOMD0SJco/wAUQRsHqkY4x/ijZvkTtIHyj/EsLaNugTwL/EsHeOgRyL/D8xjO9hN3gR3yV5EyM97IaM5ExP8Ag5njG5Fh7ZGf9x7YzpGR7Cfn/gJmBiZ5lh/dt0j2xnvEdA+048gP/AN+4Ohfdv8AoZkZOB9vQZ3H56S81+2H90foZkdB+3N/NU7x89/2voz2ic/76MyJz3npGJ9vnp8j32LJjeMnqzouOhz5eXFP2/POjzn2j2w4jPLfoe23lkRt0P7veYjaPnvfCHjkF5blkzvMh5RvxiNp85Io2zlO0Fk+crDaP8AyNs98mYiNyjI9uU5vtnvm8xPnGT55v5jHGP8AAFG8cZGM888s8s8s8unnkYC5gv8ABH7b79PPrGTnngTvP+EmYGPFLnCubZ4zeQumeeO8otROLetmJ/whTAjqfIpXHoECPJFioEpiew2Irb8nRxKsW3+E1RshVvHJ2h27NblOMOe9EyEByJKPvtxG42Shn+DvvktTsed5QwIzEiSvJrOEKyoPk4d8Mp+k1Xd+t/gZmBGmyW6izj4phfsRPeEbey1v7cmfiGV28rcbbB/xOiN3X/gdXtdpOnNldguC2ny8MHkbZHuenGz/AB6v9nl25SXh6FOxNWxEwQ/PzO0WnzYsaZIxYtBC2g/ZSY5OmdzLhhedZLIWRnJkmACjmj2O4j5/VX9qnmlcO61JyfaUGc4jpIkOCXHP2iya85UEYr5p7+xc+f1aWMsZpwB2N549rlkqZGVw/cn95cAU52G5Ow5SiTY6AFwjJlSMjq/OnOw2XgynlBParK4ylnbM1LjFFsquX7yYgxkNs3VI0/OxZT2H6WXG0t4mz51kERNvprjPujlW00vtgowmTMF6UsngTP22ycFEzvNNkxa1AJC3p1tdYgLxED9vzZlCwpGxidRrSsgGTOz/AB9Pb5Hi1+opkzdgetcjt0qnxsaomdwGTOqma6qTp8T83rL+CUPFLNVf6VwRMszskh5HyBeDHLJIhhZecwRYB8c4hOVS7U6qJcFM7TSsrBBvkHxMFHzRH4vVWtlriKTJQkTbLeBYIcoREd1pcmYE71YXBdEN7I6pBSrORSK/3qGkv7tT5m63s1TEqlfpXEjfcZHic82SZREcCnOBZHICOIMSLlglxVqO7anSu3suoidS78y20HjNTehnXT5mLlwh8YPZzvLiPERGE7lkHtkWc745JILJ4+HtnvQ6LkYZ4tPhkNh6flzOFrayXN6bb5p0yFy7xi/Pvt6dvQyNiw42iQ/eyf6zpgNN2nbror/L5fWbHBPSsrvvVXUmAZ2tWvjEXC+4/Ss/IX/mw/wt8jdGzC/r2CGvp+mx/Cv01irpWdNexEwUfLXX+ItdKkmDi1NELRY43NQHa3tyaz1vOebnTu/J/rT5oL1IP8FwuzQoXBRFq14hW09dIsd2r8rqTuzTraeyxFqgVYdOEBpVu2hN+q0WVeHidSGe+r+yJcTR5vnznB86/L0B5pLzTfiIpLAmnTDwiUAAOuJ5X50ieFAiqah8rqzB8Qmwhg3LagzxAtieL81S2XFYdxmocoYv8uJ+7or7cX9pfi1ICJSHSh0TNkJbvlu8iDhqyC/YrsxRc1fKakzuXOlHUFIrJvdtHZCxlynFedRKfEB9+L/HhCQ4j8mL+0vxXeb1r09AD4mazUagtDLLYfY6aWzuU/k3tgJf52Oof8VT1ERDUHAypdZzwfuwPxKpcM5qvR2GV3YHsX2WG8rrLyFYp02dSsf2Oulu7Vb5O0/nq7fzdVf8UMSRRpVicdRJsRpk4OmRyFK15cFk2IBmVImaz6KmRGm4WlnMXKLHk+m2vGn/AN1/5+q5/wDjaTu/U+RacLXQDiCqiBK0AhY6J/4wD7Z/UGY3a1RXYZv4x2RcsdtGolubpqgN6wbfGOmYtNIVhNqxZvcHutk4NP8A7zfy9NNQma9ZC0BQ3TY+R1GzFYO8TImAbOqWEMHpViWVK+mCOWA7dimrlp9bzKPxh+DC5ZX/ADL/ACL/ABaeM+LsDAWKVNbqqaR1rkzvOLmBbJptKNmWL0Kd8jq7u5bnVo8NRsbVH6aZZMbTmmM42d42tshtnTgKa9T7w+xX2Jjd33JR96vvX+HTYknlGx6YyCrWmQut0rVDsygPALO94fUr1uLbKLu/U+PcyEpMpM8ruhFSJgoeXJ9Wqdo6unEFvUEzXZmlcudedpiNiX7jPAVltIRxgfIl/i03l2sGSifAQVKNLdKM0kv2LTxHL/8AdzRH7H8frT+K+henSaEPJs6ZX4aZWamYHdnJUAyRlmnPlbm+Vqf7KvefKcHyR/8Af2RXd4fTc0gk7REHECfZq6duxtQkKrFtauxtcxDZQ8Sgx+N9suP8RaxFdlgtQXKRpXEIWzUUCunffLCX2IsSpqS0n01P4965x8bP9r/wN/LgxvkTuJeVZhrDSqtErIophUe44nLMzRXV1HZh6jWHGkLH26bHR00d/crfG6o/s1OlG14Zt694jpEb4FZ+7nv5sOKuqAwGi4gRqtxQ90Z3sh+IvNcRvI/2B/BMc13JVXp0x4VNQtrhLN1UG+JsCamL6LOVMLVYmr005/YufG6u/u2+gLNkjQZkIrBnc2z3xo8lWJ7qMGe42+spV9ttf3bztE8ZVkf11qJuatA8JIpyIkiZ+5bwWEOT2WZNJZYyo9f6KL/EVPi3MhKSKSLPD10rlx7REkRMRXgUKcBUzyPIgD+JXoNflpMV39mYoF7j/c6B+H/wUwLxGqL4vDTu7VppIb6fMVpJuDSjJahBuAZgTIMkxZl9C67c0R2zPi9abxr9K893TcQntwcxUmqbGW7LuPRIcrGatP8AIoSzwvLuK32tHGx5/wDm25DQZzO93PFV/OvYiIVI8BWyVHYLnTXZIYQoRF6e0VcOb7rO7byq3s2fi9Wd3LvTSj/d81mNs4wvDPmZVWCAM57UQSj/AJTmXKQmZMPTXGancOZfc/8APk/11fl0/jFOw0nOrW3JwwsKrehg9k9kt7RGmpv4oQE3mzEz2q/XT3d"... 39253 more characters
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2',
    'FESTAO',
    'NOVA AMERICA',
    'ITAPOLIS',
    '/9j/4AAQSkZJRgABAQEBLAEsAAD/4QCCRXhpZgAASUkqAAgAAAADAA4BAgA4AAAAMgAAABoBBQABAAAAagAAABsBBQABAAAAcgAAAAAAAABTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLiwBAAABAAAALAEAAAEAAAD/4QWpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIj4KCTxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CgkJPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczpJcHRjNHhtcENvcmU9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBDb3JlLzEuMC94bWxucy8iICAgeG1sbnM6R2V0dHlJbWFnZXNHSUZUPSJodHRwOi8veG1wLmdldHR5aW1hZ2VzLmNvbS9naWZ0LzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGx1cz0iaHR0cDovL25zLnVzZXBsdXMub3JnL2xkZi94bXAvMS4wLyIgIHhtbG5zOmlwdGNFeHQ9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBFeHQvMjAwOC0wMi0yOS8iIHhtbG5zOnhtcFJpZ2h0cz0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3JpZ2h0cy8iIHBob3Rvc2hvcDpDcmVkaXQ9IkdldHR5IEltYWdlcyIgR2V0dHlJbWFnZXNHSUZUOkFzc2V0SUQ9IjExNjUyMzY5ODMiIHhtcFJpZ2h0czpXZWJTdGF0ZW1lbnQ9Imh0dHBzOi8vd3d3LmlzdG9ja3Bob3RvLmNvbS9sZWdhbC9saWNlbnNlLWFncmVlbWVudD91dG1fbWVkaXVtPW9yZ2FuaWMmYW1wO3V0bV9zb3VyY2U9Z29vZ2xlJmFtcDt1dG1fY2FtcGFpZ249aXB0Y3VybCIgcGx1czpEYXRhTWluaW5nPSJodHRwOi8vbnMudXNlcGx1cy5vcmcvbGRmL3ZvY2FiL0RNSS1QUk9ISUJJVEVELUVYQ0VQVFNFQVJDSEVOR0lORUlOREVYSU5HIiA+CjxkYzpjcmVhdG9yPjxyZGY6U2VxPjxyZGY6bGk+TGVhbmRyb1BQPC9yZGY6bGk+PC9yZGY6U2VxPjwvZGM6Y3JlYXRvcj48ZGM6ZGVzY3JpcHRpb24+PHJkZjpBbHQ+PHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5TdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLjwvcmRmOmxpPjwvcmRmOkFsdD48L2RjOmRlc2NyaXB0aW9uPgo8cGx1czpMaWNlbnNvcj48cmRmOlNlcT48cmRmOmxpIHJkZjpwYXJzZVR5cGU9J1Jlc291cmNlJz48cGx1czpMaWNlbnNvclVSTD5odHRwczovL3d3dy5pc3RvY2twaG90by5jb20vcGhvdG8vbGljZW5zZS1nbTExNjUyMzY5ODMtP3V0bV9tZWRpdW09b3JnYW5pYyZhbXA7dXRtX3NvdXJjZT1nb29nbGUmYW1wO3V0bV9jYW1wYWlnbj1pcHRjdXJsPC9wbHVzOkxpY2Vuc29yVVJMPjwvcmRmOmxpPjwvcmRmOlNlcT48L3BsdXM6TGljZW5zb3I+CgkJPC9yZGY6RGVzY3JpcHRpb24+Cgk8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJ3Ij8+Cv/tAHhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAXBwCUAAJTGVhbmRyb1BQHAJ4ADhTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLhwCbgAMR2V0dHkgSW1hZ2Vz/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8IAEQgCZAJkAwEiAAIRAQMRAf/EABsAAQACAwEBAAAAAAAAAAAAAAAFBgIDBAEH/8QAGQEBAAMBAQAAAAAAAAAAAAAAAAECAwQF/9oADAMBAAIQAxAAAAG5gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjOd3vF1UnMb1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaN3FzXy6Y7v577R6OIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGji7uHyOlnr3c9+73z33uMJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGPPjbdp06/P23asezC2nX185t2ceOiTy49vfhvHVQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjlx4Wx3ad3m68vnnvPth28fbejn6NGldXnvnPt1eebOjD3ojJDtrmO3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAADzg743z9t23Rv5Z5cd2rLXHt4u21WjfpvTTjsx59unN51c/P08fU06h7HMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjpHj4tdPVx9XBp7ydmg09vJ1waN+q9dOeHVnp7q28+mePVySOs5D1ecAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB56hH5Z6vG6WOxScffUmvLOGvIPcMh0b8M/Y5g1gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADDk7tXLfk9w88vozY4mWWv2JzYezGzZr7uzIPSxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAee4wi+OGw8zplsK5t1mazr2yVm3VjlpH0PrjpHpxDooAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhZqoQ4t/F3cu3H5w7LXSnLHkjr3alZW3fP7ppl2DWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGNDnK3nbt842d9PZDSN52Y8+VbdHXD9c5yfVGxiPpzHLagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADHKDKX3Qs9S0fjuwlo3Z6aa7GPtZ06+zXvjN1i1VbGbvZPm30janoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFEu8Hlah2as2tMHs3Kac+/Z5W3RFSGo0Y7emXTAWKAtjz/Sabc717xpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1nPEewPFpCW2q27WK577pnbfl7oh04e+ww0+4WTUb25Uz0Wn59e0TecFO9GYWAAAAAAAAAAAAAAAAAAAAAAAAAAAAK1ZaISXJXteF8rnTbfWa85ts6+dHuiDbySEuTJoJbdwSGdK9eKBn0Zzt6+d2m1Z0WAAAAAAAAAAAAAAAAAAAAAAAAAAAAR9Jt1dxtXR1U6bLCTHFrX92W+ddGrs1Q0MumWrT2YQ1y0TYKUpg9DDpsVZu/NewOfo1qAAAAAAAAAAAAAAAAAAAAAAAAAAA17KyU/SaQ96rtzXqvdryytEZebb7a8ssojm26umWGno8hrslasmdKhjcebalXHVncLZ8u+n0nIQAAAAAAAAAAAAAAAAAAAAAAAAAA8+Z3enxMT7K2OFUsnZXOa/JJREzpEVty5422Gk86OfoPMtO00zkHO1z4eyuXea0Tz6BVdqxN9hdUr8LQAAAAAAAAAAAAAAAAAAAAAAAAAPIVLvq8Vje4yPz2zVT0L7I4WpE/qy6I4+Xo52vRz9PMOjVuObo590tUvDzMZwl64ssXXHaa9pF5rlf8ALR9W3Qs1rULwAAAAAAAAAAAAAAAAAAAAAAAA4+yo5zWefdp3gJiY7eSH5r2jk1SvPeB0z/rWHkp+t5u2O47VKobbPw2QE43Wz7oDi23py82/R2UCYtVx+c3jnt3jSAAAAAAAAAAAAAAAAAAAAAAAANMF1ec19dNu8FWayO/KYi5ST5bxXZDTkTy+8+uNe/oi+ek2iNjdlZ6MuLZpGfRlD2y35yOSK/pyx681wql75r+6ejk5rWR573ZgAAAAAAAAAAAAAAAAAAAAAADRCkdFcwldo72xedt84837/Tx67hXePg14JWvWDopxeY7o0xw3aaXza9ssM/fYdUDPV/XC4dlFuHNemJqF78u+1cXb5+sZG4R3Zn9MkKbcpgJAAAAAAAAAAAAAAAAAAAAAAKtaPmRwnXd3YbdnLeT17ozC1m80Z5zQpPt4Oyjbu1Z6a+Pd5a2no5+szx8yiOyuWmKnKUnoiT57Z1uYhru6t2qp6Rt4bJXOim/6j8mvdosIgAAAAAAAAAAAAAAAAAAAAABC/PZ6BsScZsJeElenOsF2y+phzb9eim1yr9b3Z72SOlYfLTXjs5tpdfJvG7TtVle6LreMWqJipnoyxjJnZbkrm2e5r7d1Y7OJqlYr3SPrXsdI5gkAAAAAAAAAAAAAAAAAAAA5+itwpOJrFm995+Pmy7+uMy17dPJJVmK0bO3oyh9F8qeXdM1ywV6t93F18+04dHP0HkrFzWcRvvHclKrlZIO3Pt746Uyy59PHNaaxGzNbliovv4OrttNz+XfUIegAAAAAAAAAAAAAAAAAAAAfP7x8+hGOvk0T22FsvNh77y44174/T120828NojSv129U/W87HdenDSPz07tb6N+jfLZMwVgwir9HJZevDPRMe8kwmcVI7c/XlGdObzo4d1s6z4z7unD6TTpLKbkJAAAAAAAAAAAAAAAAAAAAVXphrL5+2XD1uDetdc5H92FQ5prR6GUpYvm+7mvaZP5/Z5ibpUlZ8L1Ht9WQW/z3a/P0c+88s1bmcq1uzS8bWJLRDct6zUh89ymfde2S68sJP2V49I+XPP3yqtojNIs2cHOevyhIAAAAAAAAAAAAAAAAABxdtQgmuvj8vo898x491Mm6r6/J0Yd8V1ZyuUR1VnpjJOZpMN70Qd4l5qoXXl0rOvLXtfLF7Fu/ux4ss9kPp97MpKOutbxns5N0LZIcHnu1Zbr4uHG1/e6fC7dvuPbvSr3Km2v2OPeLAAAAAAAAAAAAAAAAAAMaVY+DObFz9CXHs6IrG1J3yE9naoRc7ydNI231P6Dhak3it7M7S0XxbZiu3SKlJmC5+nRtOrr0ZLTUNPRmNIu5RfFetwgPIfG3X7aa8VmSjbd25wWuXsfNfikqjfb1592TWsbGWKoFzGkAAAAAAAAAAAAAAAAAAV+pbuaJkbFXMsZvVL1WWs1TbYq/E18292XvXcHm769nuNDXsoWkXOMrs3eM4uYjJvqzw33my1+wUnGn0aJqMwW/j27cJrUVa5HR81WKu9+XVPwFvwtTPpUby1Tde4MJjl24x20fV/YWamAkAAAAAAAAAAAAAAAA5OurFN8NI6b5Qpbi1m+2h2XOZTniJSk13bP0jopZOytWTOY2S176zwT9DsUTX+/R7159PJJQ2Wu7DD3RZafcabTO2ysPxc19NgrN20irTtflSLwh5voplauaL5NJfVrp+lfoFf4dFLRY9PCyXj5V9TpOQgAAAAAAAAAAAAAAAAo124+a/wA/5PpWvK/zdd4vetcTPJvThk43y0Xio8rGwdFLN5XMea4dNEnGddLTULaY/h2hvJjLeshS7bUqQHbl03ShZc989R0UWesM7W2qYoG7vtEUnJDG9T6Lz1YWot327YdQ7cgAAAAAAAAAAAAAAAMNG3Xx6ePWVsfM0NWO/wApbgi7H4Vj2zcNoh9Ur6QqbSg054RXdtxrPRCy0FtTZIREjvSSjJDDg2icZtpEJ7NiF3yeJweSEnCudsz7Dnz2qzrz99vGPvq0eZeJjpHoZAAAAAAAAAAAAAAAAasd/mU6fN/lLafNuOc4M8az49Q8ipWNrPE8THrwe+4+p938+dXkL28XZm6+TPSJ7Th75+rz3Gz14R68HszCz8T6ezHj32WPuXtowbfdI1Ny8eZGtQkAAAAAAAAAAAAAAAAAB49Qw82KTrrlni4QGUv6Q6YRMOmBCaLEtFYWby8VpZMitdE77WYXKYUmHTAh/JnwhbLyScxm2JY++rwEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/EADEQAAICAQMCBQMFAAICAwAAAAIDAQQABRESEBMUISIxUBUyMyAjJDRgNUFDgCVCRP/aAAgBAQABBQL/ANDJOMD0SJco/wAUQRsHqkY4x/ijZvkTtIHyj/EsLaNugTwL/EsHeOgRyL/D8xjO9hN3gR3yV5EyM97IaM5ExP8Ag5njG5Fh7ZGf9x7YzpGR7Cfn/gJmBiZ5lh/dt0j2xnvEdA+048gP/AN+4Ohfdv8AoZkZOB9vQZ3H56S81+2H90foZkdB+3N/NU7x89/2voz2ic/76MyJz3npGJ9vnp8j32LJjeMnqzouOhz5eXFP2/POjzn2j2w4jPLfoe23lkRt0P7veYjaPnvfCHjkF5blkzvMh5RvxiNp85Io2zlO0Fk+crDaP8AyNs98mYiNyjI9uU5vtnvm8xPnGT55v5jHGP8AAFG8cZGM888s8s8s8unnkYC5gv8ABH7b79PPrGTnngTvP+EmYGPFLnCubZ4zeQumeeO8otROLetmJ/whTAjqfIpXHoECPJFioEpiew2Irb8nRxKsW3+E1RshVvHJ2h27NblOMOe9EyEByJKPvtxG42Shn+DvvktTsed5QwIzEiSvJrOEKyoPk4d8Mp+k1Xd+t/gZmBGmyW6izj4phfsRPeEbey1v7cmfiGV28rcbbB/xOiN3X/gdXtdpOnNldguC2ny8MHkbZHuenGz/AB6v9nl25SXh6FOxNWxEwQ/PzO0WnzYsaZIxYtBC2g/ZSY5OmdzLhhedZLIWRnJkmACjmj2O4j5/VX9qnmlcO61JyfaUGc4jpIkOCXHP2iya85UEYr5p7+xc+f1aWMsZpwB2N549rlkqZGVw/cn95cAU52G5Ow5SiTY6AFwjJlSMjq/OnOw2XgynlBParK4ylnbM1LjFFsquX7yYgxkNs3VI0/OxZT2H6WXG0t4mz51kERNvprjPujlW00vtgowmTMF6UsngTP22ycFEzvNNkxa1AJC3p1tdYgLxED9vzZlCwpGxidRrSsgGTOz/AB9Pb5Hi1+opkzdgetcjt0qnxsaomdwGTOqma6qTp8T83rL+CUPFLNVf6VwRMszskh5HyBeDHLJIhhZecwRYB8c4hOVS7U6qJcFM7TSsrBBvkHxMFHzRH4vVWtlriKTJQkTbLeBYIcoREd1pcmYE71YXBdEN7I6pBSrORSK/3qGkv7tT5m63s1TEqlfpXEjfcZHic82SZREcCnOBZHICOIMSLlglxVqO7anSu3suoidS78y20HjNTehnXT5mLlwh8YPZzvLiPERGE7lkHtkWc745JILJ4+HtnvQ6LkYZ4tPhkNh6flzOFrayXN6bb5p0yFy7xi/Pvt6dvQyNiw42iQ/eyf6zpgNN2nbror/L5fWbHBPSsrvvVXUmAZ2tWvjEXC+4/Ss/IX/mw/wt8jdGzC/r2CGvp+mx/Cv01irpWdNexEwUfLXX+ItdKkmDi1NELRY43NQHa3tyaz1vOebnTu/J/rT5oL1IP8FwuzQoXBRFq14hW09dIsd2r8rqTuzTraeyxFqgVYdOEBpVu2hN+q0WVeHidSGe+r+yJcTR5vnznB86/L0B5pLzTfiIpLAmnTDwiUAAOuJ5X50ieFAiqah8rqzB8Qmwhg3LagzxAtieL81S2XFYdxmocoYv8uJ+7or7cX9pfi1ICJSHSh0TNkJbvlu8iDhqyC/YrsxRc1fKakzuXOlHUFIrJvdtHZCxlynFedRKfEB9+L/HhCQ4j8mL+0vxXeb1r09AD4mazUagtDLLYfY6aWzuU/k3tgJf52Oof8VT1ERDUHAypdZzwfuwPxKpcM5qvR2GV3YHsX2WG8rrLyFYp02dSsf2Oulu7Vb5O0/nq7fzdVf8UMSRRpVicdRJsRpk4OmRyFK15cFk2IBmVImaz6KmRGm4WlnMXKLHk+m2vGn/AN1/5+q5/wDjaTu/U+RacLXQDiCqiBK0AhY6J/4wD7Z/UGY3a1RXYZv4x2RcsdtGolubpqgN6wbfGOmYtNIVhNqxZvcHutk4NP8A7zfy9NNQma9ZC0BQ3TY+R1GzFYO8TImAbOqWEMHpViWVK+mCOWA7dimrlp9bzKPxh+DC5ZX/ADL/ACL/ABaeM+LsDAWKVNbqqaR1rkzvOLmBbJptKNmWL0Kd8jq7u5bnVo8NRsbVH6aZZMbTmmM42d42tshtnTgKa9T7w+xX2Jjd33JR96vvX+HTYknlGx6YyCrWmQut0rVDsygPALO94fUr1uLbKLu/U+PcyEpMpM8ruhFSJgoeXJ9Wqdo6unEFvUEzXZmlcudedpiNiX7jPAVltIRxgfIl/i03l2sGSifAQVKNLdKM0kv2LTxHL/8AdzRH7H8frT+K+henSaEPJs6ZX4aZWamYHdnJUAyRlmnPlbm+Vqf7KvefKcHyR/8Af2RXd4fTc0gk7REHECfZq6duxtQkKrFtauxtcxDZQ8Sgx+N9suP8RaxFdlgtQXKRpXEIWzUUCunffLCX2IsSpqS0n01P4965x8bP9r/wN/LgxvkTuJeVZhrDSqtErIophUe44nLMzRXV1HZh6jWHGkLH26bHR00d/crfG6o/s1OlG14Zt694jpEb4FZ+7nv5sOKuqAwGi4gRqtxQ90Z3sh+IvNcRvI/2B/BMc13JVXp0x4VNQtrhLN1UG+JsCamL6LOVMLVYmr005/YufG6u/u2+gLNkjQZkIrBnc2z3xo8lWJ7qMGe42+spV9ttf3bztE8ZVkf11qJuatA8JIpyIkiZ+5bwWEOT2WZNJZYyo9f6KL/EVPi3MhKSKSLPD10rlx7REkRMRXgUKcBUzyPIgD+JXoNflpMV39mYoF7j/c6B+H/wUwLxGqL4vDTu7VppIb6fMVpJuDSjJahBuAZgTIMkxZl9C67c0R2zPi9abxr9K893TcQntwcxUmqbGW7LuPRIcrGatP8AIoSzwvLuK32tHGx5/wDm25DQZzO93PFV/OvYiIVI8BWyVHYLnTXZIYQoRF6e0VcOb7rO7byq3s2fi9Wd3LvTSj/d81mNs4wvDPmZVWCAM57UQSj/AJTmXKQmZMPTXGancOZfc/8APk/11fl0/jFOw0nOrW3JwwsKrehg9k9kt7RGmpv4oQE3mzEz2q/XT3d6n8S9sJSiq27jark9K7O0+4OzhSw8LsLzxY8mVrzQ0yJC5PqfKxvZbTFexpj44uSKrOO/LhfiCdorCurTczuuo0FGiTNyLJb06dZ7ZcdqvA2KrMhMlExI5fntUcEZKVaZYZmjO4N+J1t+wVFdityxtKs7HaSwce56aTHtd00tQxG+2V9QriwZduAkSirWGZpsiFi4vhbmNpd743yjbdBCuvSWhrc0xTQyOQM8T4YKT1tFkCYNCFtiZiUXLEncrPt2laSoMAVqjectxNS+JQY/EH/M1frE'... 38788 more characters,
    2025-10-02T00:00:00.000Z,
    2025-10-05T00:00:00.000Z,
    2025-12-10T00:00:00.000Z,
    'COMISSAO',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-04T21:54:56.311Z
  ],
  driverError: Error: Duplicate entry 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad09d443-6e10-4ba4-a09d-ab63fc2f75a2', 'FESTAO', 'NOVA AMERICA', 'ITAPOLIS', '/9j/4AAQSkZJRgABAQEBLAEsAAD/4QCCRXhpZgAASUkqAAgAAAADAA4BAgA4AAAAMgAAABoBBQABAAAAagAAABsBBQABAAAAcgAAAAAAAABTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLiwBAAABAAAALAEAAAEAAAD/4QWpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIj4KCTxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CgkJPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczpJcHRjNHhtcENvcmU9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBDb3JlLzEuMC94bWxucy8iICAgeG1sbnM6R2V0dHlJbWFnZXNHSUZUPSJodHRwOi8veG1wLmdldHR5aW1hZ2VzLmNvbS9naWZ0LzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGx1cz0iaHR0cDovL25zLnVzZXBsdXMub3JnL2xkZi94bXAvMS4wLyIgIHhtbG5zOmlwdGNFeHQ9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBFeHQvMjAwOC0wMi0yOS8iIHhtbG5zOnhtcFJpZ2h0cz0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3JpZ2h0cy8iIHBob3Rvc2hvcDpDcmVkaXQ9IkdldHR5IEltYWdlcyIgR2V0dHlJbWFnZXNHSUZUOkFzc2V0SUQ9IjExNjUyMzY5ODMiIHhtcFJpZ2h0czpXZWJTdGF0ZW1lbnQ9Imh0dHBzOi8vd3d3LmlzdG9ja3Bob3RvLmNvbS9sZWdhbC9saWNlbnNlLWFncmVlbWVudD91dG1fbWVkaXVtPW9yZ2FuaWMmYW1wO3V0bV9zb3VyY2U9Z29vZ2xlJmFtcDt1dG1fY2FtcGFpZ249aXB0Y3VybCIgcGx1czpEYXRhTWluaW5nPSJodHRwOi8vbnMudXNlcGx1cy5vcmcvbGRmL3ZvY2FiL0RNSS1QUk9ISUJJVEVELUVYQ0VQVFNFQVJDSEVOR0lORUlOREVYSU5HIiA+CjxkYzpjcmVhdG9yPjxyZGY6U2VxPjxyZGY6bGk+TGVhbmRyb1BQPC9yZGY6bGk+PC9yZGY6U2VxPjwvZGM6Y3JlYXRvcj48ZGM6ZGVzY3JpcHRpb24+PHJkZjpBbHQ+PHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5TdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLjwvcmRmOmxpPjwvcmRmOkFsdD48L2RjOmRlc2NyaXB0aW9uPgo8cGx1czpMaWNlbnNvcj48cmRmOlNlcT48cmRmOmxpIHJkZjpwYXJzZVR5cGU9J1Jlc291cmNlJz48cGx1czpMaWNlbnNvclVSTD5odHRwczovL3d3dy5pc3RvY2twaG90by5jb20vcGhvdG8vbGljZW5zZS1nbTExNjUyMzY5ODMtP3V0bV9tZWRpdW09b3JnYW5pYyZhbXA7dXRtX3NvdXJjZT1nb29nbGUmYW1wO3V0bV9jYW1wYWlnbj1pcHRjdXJsPC9wbHVzOkxpY2Vuc29yVVJMPjwvcmRmOmxpPjwvcmRmOlNlcT48L3BsdXM6TGljZW5zb3I+CgkJPC9yZGY6RGVzY3JpcHRpb24+Cgk8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJ3Ij8+Cv/tAHhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAXBwCUAAJTGVhbmRyb1BQHAJ4ADhTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLhwCbgAMR2V0dHkgSW1hZ2Vz/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8IAEQgCZAJkAwEiAAIRAQMRAf/EABsAAQACAwEBAAAAAAAAAAAAAAAFBgIDBAEH/8QAGQEBAAMBAQAAAAAAAAAAAAAAAAECAwQF/9oADAMBAAIQAxAAAAG5gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjOd3vF1UnMb1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaN3FzXy6Y7v577R6OIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGji7uHyOlnr3c9+73z33uMJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGPPjbdp06/P23asezC2nX185t2ceOiTy49vfhvHVQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjlx4Wx3ad3m68vnnvPth28fbejn6NGldXnvnPt1eebOjD3ojJDtrmO3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAADzg743z9t23Rv5Z5cd2rLXHt4u21WjfpvTTjsx59unN51c/P08fU06h7HMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjpHj4tdPVx9XBp7ydmg09vJ1waN+q9dOeHVnp7q28+mePVySOs5D1ecAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB56hH5Z6vG6WOxScffUmvLOGvIPcMh0b8M/Y5g1gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADDk7tXLfk9w88vozY4mWWv2JzYezGzZr7uzIPSxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAee4wi+OGw8zplsK5t1mazr2yVm3VjlpH0PrjpHpxDooAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhZqoQ4t/F3cu3H5w7LXSnLHkjr3alZW3fP7ppl2DWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGNDnK3nbt842d9PZDSN52Y8+VbdHXD9c5yfVGxiPpzHLagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADHKDKX3Qs9S0fjuwlo3Z6aa7GPtZ06+zXvjN1i1VbGbvZPm30janoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFEu8Hlah2as2tMHs3Kac+/Z5W3RFSGo0Y7emXTAWKAtjz/Sabc717xpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1nPEewPFpCW2q27WK577pnbfl7oh04e+ww0+4WTUb25Uz0Wn59e0TecFO9GYWAAAAAAAAAAAAAAAAAAAAAAAAAAAAK1ZaISXJXteF8rnTbfWa85ts6+dHuiDbySEuTJoJbdwSGdK9eKBn0Zzt6+d2m1Z0WAAAAAAAAAAAAAAAAAAAAAAAAAAAAR9Jt1dxtXR1U6bLCTHFrX92W+ddGrs1Q0MumWrT2YQ1y0TYKUpg9DDpsVZu/NewOfo1qAAAAAAAAAAAAAAAAAAAAAAAAAAA17KyU/SaQ96rtzXqvdryytEZebb7a8ssojm26umWGno8hrslasmdKhjcebalXHVncLZ8u+n0nIQAAAAAAAAAAAAAAAAAAAAAAAAAA8+Z3enxMT7K2OFUsnZXOa/JJREzpEVty5422Gk86OfoPMtO00zkHO1z4eyuXea0Tz6BVdqxN9hdUr8LQAAAAAAAAAAAAAAAAAAAAAAAAAPIVLvq8Vje4yPz2zVT0L7I4WpE/qy6I4+Xo52vRz9PMOjVuObo590tUvDzMZwl64ssXXHaa9pF5rlf8ALR9W3Qs1rULwAAAAAAAAAAAAAAAAAAAAAAAA4+yo5zWefdp3gJiY7eSH5r2jk1SvPeB0z/rWHkp+t5u2O47VKobbPw2QE43Wz7oDi23py82/R2UCYtVx+c3jnt3jSAAAAAAAAAAAAAAAAAAAAAAAANMF1ec19dNu8FWayO/KYi5ST5bxXZDTkTy+8+uNe/oi+ek2iNjdlZ6MuLZpGfRlD2y35yOSK/pyx681wql75r+6ejk5rWR573ZgAAAAAAAAAAAAAAAAAAAAAADRCkdFcwldo72xedt84837/Tx67hXePg14JWvWDopxeY7o0xw3aaXza9ssM/fYdUDPV/XC4dlFuHNemJqF78u+1cXb5+sZG4R3Zn9MkKbcpgJAAAAAAAAAAAAAAAAAAAAAAKtaPmRwnXd3YbdnLeT17ozC1m80Z5zQpPt4Oyjbu1Z6a+Pd5a2no5+szx8yiOyuWmKnKUnoiT57Z1uYhru6t2qp6Rt4bJXOim/6j8mvdosIgAAAAAAAAAAAAAAAAAAAAABC/PZ6BsScZsJeElenOsF2y+phzb9eim1yr9b3Z72SOlYfLTXjs5tpdfJvG7TtVle6LreMWqJipnoyxjJnZbkrm2e5r7d1Y7OJqlYr3SPrXsdI5gkAAAAAAAAAAAAAAAAAAAA5+itwpOJrFm995+Pmy7+uMy17dPJJVmK0bO3oyh9F8qeXdM1ywV6t93F18+04dHP0HkrFzWcRvvHclKrlZIO3Pt746Uyy59PHNaaxGzNbliovv4OrttNz+XfUIegAAAAAAAAAAAAAAAAAAAAfP7x8+hGOvk0T22FsvNh77y44174/T120828NojSv129U/W87HdenDSPz07tb6N+jfLZMwVgwir9HJZevDPRMe8kwmcVI7c/XlGdObzo4d1s6z4z7unD6TTpLKbkJAAAAAAAAAAAAAAAAAAAAVXphrL5+2XD1uDetdc5H92FQ5prR6GUpYvm+7mvaZP5/Z5ibpUlZ8L1Ht9WQW/z3a/P0c+88s1bmcq1uzS8bWJLRDct6zUh89ymfde2S68sJP2V49I+XPP3yqtojNIs2cHOevyhIAAAAAAAAAAAAAAAAABxdtQgmuvj8vo898x491Mm6r6/J0Yd8V1ZyuUR1VnpjJOZpMN70Qd4l5qoXXl0rOvLXtfLF7Fu/ux4ss9kPp97MpKOutbxns5N0LZIcHnu1Zbr4uHG1/e6fC7dvuPbvSr3Km2v2OPeLAAAAAAAAAAAAAAAAAAMaVY+DObFz9CXHs6IrG1J3yE9naoRc7ydNI231P6Dhak3it7M7S0XxbZiu3SKlJmC5+nRtOrr0ZLTUNPRmNIu5RfFetwgPIfG3X7aa8VmSjbd25wWuXsfNfikqjfb1592TWsbGWKoFzGkAAAAAAAAAAAAAAAAAAV+pbuaJkbFXMsZvVL1WWs1TbYq/E18292XvXcHm769nuNDXsoWkXOMrs3eM4uYjJvqzw33my1+wUnGn0aJqMwW/j27cJrUVa5HR81WKu9+XVPwFvwtTPpUby1Tde4MJjl24x20fV/YWamAkAAAAAAAAAAAAAAAA5OurFN8NI6b5Qpbi1m+2h2XOZTniJSk13bP0jopZOytWTOY2S176zwT9DsUTX+/R7159PJJQ2Wu7DD3RZafcabTO2ysPxc19NgrN20irTtflSLwh5voplauaL5NJfVrp+lfoFf4dFLRY9PCyXj5V9TpOQgAAAAAAAAAAAAAAAAo124+a/wA/5PpWvK/zdd4vetcTPJvThk43y0Xio8rGwdFLN5XMea4dNEnGddLTULaY/h2hvJjLeshS7bUqQHbl03ShZc989R0UWesM7W2qYoG7vtEUnJDG9T6Lz1YWot327YdQ7cgAAAAAAAAAAAAAAAMNG3Xx6ePWVsfM0NWO/wApbgi7H4Vj2zcNoh9Ur6QqbSg054RXdtxrPRCy0FtTZIREjvSSjJDDg2icZtpEJ7NiF3yeJweSEnCudsz7Dnz2qzrz99vGPvq0eZeJjpHoZAAAAAAAAAAAAAAAAasd/mU6fN/lLafNuOc4M8az49Q8ipWNrPE8THrwe+4+p938+dXkL28XZm6+TPSJ7Th75+rz3Gz14R68HszCz8T6ezHj32WPuXtowbfdI1Ny8eZGtQkAAAAAAAAAAAAAAAAAB49Qw82KTrrlni4QGUv6Q6YRMOmBCaLEtFYWby8VpZMitdE77WYXKYUmHTAh/JnwhbLyScxm2JY++rwEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/EADEQAAICAQMCBQMFAAICAwAAAAIDAQQABRESEBMUISIxUBUyMyAjJDRgNUFDgCVCRP/aAAgBAQABBQL/ANDJOMD0SJco/wAUQRsHqkY4x/ijZvkTtIHyj/EsLaNugTwL/EsHeOgRyL/D8xjO9hN3gR3yV5EyM97IaM5ExP8Ag5njG5Fh7ZGf9x7YzpGR7Cfn/gJmBiZ5lh/dt0j2xnvEdA+048gP/AN+4Ohfdv8AoZkZOB9vQZ3H56S81+2H90foZkdB+3N/NU7x89/2voz2ic/76MyJz3npGJ9vnp8j32LJjeMnqzouOhz5eXFP2/POjzn2j2w4jPLfoe23lkRt0P7veYjaPnvfCHjkF5blkzvMh5RvxiNp85Io2zlO0Fk+crDaP8AyNs98mYiNyjI9uU5vtnvm8xPnGT55v5jHGP8AAFG8cZGM888s8s8s8unnkYC5gv8ABH7b79PPrGTnngTvP+EmYGPFLnCubZ4zeQumeeO8otROLetmJ/whTAjqfIpXHoECPJFioEpiew2Irb8nRxKsW3+E1RshVvHJ2h27NblOMOe9EyEByJKPvtxG42Shn+DvvktTsed5QwIzEiSvJrOEKyoPk4d8Mp+k1Xd+t/gZmBGmyW6izj4phfsRPeEbey1v7cmfiGV28rcbbB/xOiN3X/gdXtdpOnNldguC2ny8MHkbZHuenGz/AB6v9nl25SXh6FOxNWxEwQ/PzO0WnzYsaZIxYtBC2g/ZSY5OmdzLhhedZLIWRnJkmACjmj2O4j5/VX9qnmlcO61JyfaUGc4jpIkOCXHP2iya85UEYr5p7+xc+f1aWMsZpwB2N549rlkqZGVw/cn95cAU52G5Ow5SiTY6AFwjJlSMjq/OnOw2XgynlBParK4ylnbM1LjFFsquX7yYgxkNs3VI0/OxZT2H6WXG0t4mz51kERNvprjPujlW00vtgowmTMF6UsngTP22ycFEzvNNkxa1AJC3p1tdYgLxED9vzZlCwpGxidRrSsgGTOz/AB9Pb5Hi1+opkzdgetcjt0qnxsaomdwGTOqma6qTp8T83rL+CUPFLNVf6VwRMszskh5HyBeDHLJIhhZecwRYB8c4hOVS7U6qJcFM7TSsrBBvkHxMFHzRH4vVWtlriKTJQkTbLeBYIcoREd1pcmYE71YXBdEN7I6pBSrORSK/3qGkv7tT5m63s1TEqlfpXEjfcZHic82SZREcCnOBZHICOIMSLlglxVqO7anSu3suoidS78y20HjNTehnXT5mLlwh8YPZzvLiPERGE7lkHtkWc745JILJ4+HtnvQ6LkYZ4tPhkNh6flzOFrayXN6bb5p0yFy7xi/Pvt6dvQyNiw42iQ/eyf6zpgNN2nbror/L5fWbHBPSsrvvVXUmAZ2tWvjEXC+4/Ss/IX/mw/wt8jdGzC/r2CGvp+mx/Cv01irpWdNexEwUfLXX+ItdKkmDi1NELRY43NQHa3tyaz1vOebnTu/J/rT5oL1IP8FwuzQoXBRFq14hW09dIsd2r8rqTuzTraeyxFqgVYdOEBpVu2hN+q0WVeHidSGe+r+yJcTR5vnznB86/L0B5pLzTfiIpLAmnTDwiUAAOuJ5X50ieFAiqah8rqzB8Qmwhg3LagzxAtieL81S2XFYdxmocoYv8uJ+7or7cX9pfi1ICJSHSh0TNkJbvlu8iDhqyC/YrsxRc1fKakzuXOlHUFIrJvdtHZCxlynFedRKfEB9+L/HhCQ4j8mL+0vxXeb1r09AD4mazUagtDLLYfY6aWzuU/k3tgJf52Oof8VT1ERDUHAypdZzwfuwPxKpcM5qvR2GV3YHsX2WG8rrLyFYp02dSsf2Oulu7Vb5O0/nq7fzdVf8UMSRRpVicdRJsRpk4OmRyFK15cFk2IBmVImaz6KmRGm4WlnMXKLHk+m2vGn/AN1/5+q5/wDjaTu/U+RacLXQDiCqiBK0AhY6J/4wD7Z/UGY3a1RXYZv4x2RcsdtGolubpqgN6wbfGOmYtNIVhNqxZvcHutk4NP8A7zfy9NNQma9ZC0BQ3TY+R1GzFYO8TImAbOqWEMHpViWVK+mCOWA7dimrlp9bzKPxh+DC5ZX/ADL/ACL/ABaeM+LsDAWKVNbqqaR1rkzvOLmBbJptKNmWL0Kd8jq7u5bnVo8NRsbVH6aZZMbTmmM42d42tshtnTgKa9T7w+xX2Jjd33JR96vvX+HTYknlGx6YyCrWmQut0rVDsygPALO94fUr1uLbKLu/U+PcyEpMpM8ruhFSJgoeXJ9Wqdo6unEFvUEzXZmlcudedpiNiX7jPAVltIRxgfIl/i03l2sGSifAQVKNLdKM0kv2LTxHL/8AdzRH7H8frT+K+henSaEPJs6ZX4aZWamYHdnJUAyRlmnPlbm+Vqf7KvefKcHyR/8Af2RXd4fTc0gk7REHECfZq6duxtQkKrFtauxtcxDZQ8Sgx+N9suP8RaxFdlgtQXKRpXEIWzUUCunffLCX2IsSpqS0n01P4965x8bP9r/wN/LgxvkTuJeVZhrDSqtErIophUe44nLMzRXV1HZh6jWHGkLH26bHR00d/crfG6o/s1OlG14Zt694jpEb4FZ+7nv5sOKuqAwGi4gRqtxQ90Z3sh+IvNcRvI/2B/BMc13JVXp0x4VNQtrhLN1UG+JsCamL6LOVMLVYmr005/YufG6u/u2+gLNkjQZkIrBnc2z3xo8lWJ7qMGe42+spV9ttf3bztE8ZVkf11qJuatA8JIpyIkiZ+5bwWEOT2WZNJZYyo9f6KL/EVPi3MhKSKSLPD10rlx7REkRMRXgUKcBUzyPIgD+JXoNflpMV39mYoF7j/c6B+H/wUwLxGqL4vDTu7VppIb6fMVpJuDSjJahBuAZgTIMkxZl9C67c0R2zPi9abxr9K893TcQntwcxUmqbGW7LuPRIcrGatP8AIoSzwvLuK32tHGx5/wDm25DQZzO93PFV/OvYiIVI8BWyVHYLnTXZIYQoRF6e0VcOb7rO7byq3s2fi9Wd3LvTSj/d81mNs4wvDPmZVWCAM57UQSj/AJTmXKQmZMPTXGancOZfc/8APk/11fl0/jFOw0nOrW3JwwsKrehg9k9kt7RGmpv4oQE3mzEz2q/XT3d"... 39253 more characters
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad09d443-6e10-4ba4-a09d-ab63fc2f75a2', 'FESTAO', 'NOVA AMERICA', 'ITAPOLIS', '/9j/4AAQSkZJRgABAQEBLAEsAAD/4QCCRXhpZgAASUkqAAgAAAADAA4BAgA4AAAAMgAAABoBBQABAAAAagAAABsBBQABAAAAcgAAAAAAAABTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLiwBAAABAAAALAEAAAEAAAD/4QWpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIj4KCTxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CgkJPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczpJcHRjNHhtcENvcmU9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBDb3JlLzEuMC94bWxucy8iICAgeG1sbnM6R2V0dHlJbWFnZXNHSUZUPSJodHRwOi8veG1wLmdldHR5aW1hZ2VzLmNvbS9naWZ0LzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGx1cz0iaHR0cDovL25zLnVzZXBsdXMub3JnL2xkZi94bXAvMS4wLyIgIHhtbG5zOmlwdGNFeHQ9Imh0dHA6Ly9pcHRjLm9yZy9zdGQvSXB0YzR4bXBFeHQvMjAwOC0wMi0yOS8iIHhtbG5zOnhtcFJpZ2h0cz0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3JpZ2h0cy8iIHBob3Rvc2hvcDpDcmVkaXQ9IkdldHR5IEltYWdlcyIgR2V0dHlJbWFnZXNHSUZUOkFzc2V0SUQ9IjExNjUyMzY5ODMiIHhtcFJpZ2h0czpXZWJTdGF0ZW1lbnQ9Imh0dHBzOi8vd3d3LmlzdG9ja3Bob3RvLmNvbS9sZWdhbC9saWNlbnNlLWFncmVlbWVudD91dG1fbWVkaXVtPW9yZ2FuaWMmYW1wO3V0bV9zb3VyY2U9Z29vZ2xlJmFtcDt1dG1fY2FtcGFpZ249aXB0Y3VybCIgcGx1czpEYXRhTWluaW5nPSJodHRwOi8vbnMudXNlcGx1cy5vcmcvbGRmL3ZvY2FiL0RNSS1QUk9ISUJJVEVELUVYQ0VQVFNFQVJDSEVOR0lORUlOREVYSU5HIiA+CjxkYzpjcmVhdG9yPjxyZGY6U2VxPjxyZGY6bGk+TGVhbmRyb1BQPC9yZGY6bGk+PC9yZGY6U2VxPjwvZGM6Y3JlYXRvcj48ZGM6ZGVzY3JpcHRpb24+PHJkZjpBbHQ+PHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5TdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLjwvcmRmOmxpPjwvcmRmOkFsdD48L2RjOmRlc2NyaXB0aW9uPgo8cGx1czpMaWNlbnNvcj48cmRmOlNlcT48cmRmOmxpIHJkZjpwYXJzZVR5cGU9J1Jlc291cmNlJz48cGx1czpMaWNlbnNvclVSTD5odHRwczovL3d3dy5pc3RvY2twaG90by5jb20vcGhvdG8vbGljZW5zZS1nbTExNjUyMzY5ODMtP3V0bV9tZWRpdW09b3JnYW5pYyZhbXA7dXRtX3NvdXJjZT1nb29nbGUmYW1wO3V0bV9jYW1wYWlnbj1pcHRjdXJsPC9wbHVzOkxpY2Vuc29yVVJMPjwvcmRmOmxpPjwvcmRmOlNlcT48L3BsdXM6TGljZW5zb3I+CgkJPC9yZGY6RGVzY3JpcHRpb24+Cgk8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJ3Ij8+Cv/tAHhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAXBwCUAAJTGVhbmRyb1BQHAJ4ADhTdGF0dWUgYWRtaXJlZCBieSBDYXRob2xpYyBDaHJpc3RpYW5zLiBDaHJpc3RpYW4gc3ltYm9sLhwCbgAMR2V0dHkgSW1hZ2Vz/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8IAEQgCZAJkAwEiAAIRAQMRAf/EABsAAQACAwEBAAAAAAAAAAAAAAAFBgIDBAEH/8QAGQEBAAMBAQAAAAAAAAAAAAAAAAECAwQF/9oADAMBAAIQAxAAAAG5gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjOd3vF1UnMb1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaN3FzXy6Y7v577R6OIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGji7uHyOlnr3c9+73z33uMJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGPPjbdp06/P23asezC2nX185t2ceOiTy49vfhvHVQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjlx4Wx3ad3m68vnnvPth28fbejn6NGldXnvnPt1eebOjD3ojJDtrmO3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAADzg743z9t23Rv5Z5cd2rLXHt4u21WjfpvTTjsx59unN51c/P08fU06h7HMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjpHj4tdPVx9XBp7ydmg09vJ1waN+q9dOeHVnp7q28+mePVySOs5D1ecAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB56hH5Z6vG6WOxScffUmvLOGvIPcMh0b8M/Y5g1gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADDk7tXLfk9w88vozY4mWWv2JzYezGzZr7uzIPSxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAee4wi+OGw8zplsK5t1mazr2yVm3VjlpH0PrjpHpxDooAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhZqoQ4t/F3cu3H5w7LXSnLHkjr3alZW3fP7ppl2DWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGNDnK3nbt842d9PZDSN52Y8+VbdHXD9c5yfVGxiPpzHLagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADHKDKX3Qs9S0fjuwlo3Z6aa7GPtZ06+zXvjN1i1VbGbvZPm30janoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFEu8Hlah2as2tMHs3Kac+/Z5W3RFSGo0Y7emXTAWKAtjz/Sabc717xpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1nPEewPFpCW2q27WK577pnbfl7oh04e+ww0+4WTUb25Uz0Wn59e0TecFO9GYWAAAAAAAAAAAAAAAAAAAAAAAAAAAAK1ZaISXJXteF8rnTbfWa85ts6+dHuiDbySEuTJoJbdwSGdK9eKBn0Zzt6+d2m1Z0WAAAAAAAAAAAAAAAAAAAAAAAAAAAAR9Jt1dxtXR1U6bLCTHFrX92W+ddGrs1Q0MumWrT2YQ1y0TYKUpg9DDpsVZu/NewOfo1qAAAAAAAAAAAAAAAAAAAAAAAAAAA17KyU/SaQ96rtzXqvdryytEZebb7a8ssojm26umWGno8hrslasmdKhjcebalXHVncLZ8u+n0nIQAAAAAAAAAAAAAAAAAAAAAAAAAA8+Z3enxMT7K2OFUsnZXOa/JJREzpEVty5422Gk86OfoPMtO00zkHO1z4eyuXea0Tz6BVdqxN9hdUr8LQAAAAAAAAAAAAAAAAAAAAAAAAAPIVLvq8Vje4yPz2zVT0L7I4WpE/qy6I4+Xo52vRz9PMOjVuObo590tUvDzMZwl64ssXXHaa9pF5rlf8ALR9W3Qs1rULwAAAAAAAAAAAAAAAAAAAAAAAA4+yo5zWefdp3gJiY7eSH5r2jk1SvPeB0z/rWHkp+t5u2O47VKobbPw2QE43Wz7oDi23py82/R2UCYtVx+c3jnt3jSAAAAAAAAAAAAAAAAAAAAAAAANMF1ec19dNu8FWayO/KYi5ST5bxXZDTkTy+8+uNe/oi+ek2iNjdlZ6MuLZpGfRlD2y35yOSK/pyx681wql75r+6ejk5rWR573ZgAAAAAAAAAAAAAAAAAAAAAADRCkdFcwldo72xedt84837/Tx67hXePg14JWvWDopxeY7o0xw3aaXza9ssM/fYdUDPV/XC4dlFuHNemJqF78u+1cXb5+sZG4R3Zn9MkKbcpgJAAAAAAAAAAAAAAAAAAAAAAKtaPmRwnXd3YbdnLeT17ozC1m80Z5zQpPt4Oyjbu1Z6a+Pd5a2no5+szx8yiOyuWmKnKUnoiT57Z1uYhru6t2qp6Rt4bJXOim/6j8mvdosIgAAAAAAAAAAAAAAAAAAAAABC/PZ6BsScZsJeElenOsF2y+phzb9eim1yr9b3Z72SOlYfLTXjs5tpdfJvG7TtVle6LreMWqJipnoyxjJnZbkrm2e5r7d1Y7OJqlYr3SPrXsdI5gkAAAAAAAAAAAAAAAAAAAA5+itwpOJrFm995+Pmy7+uMy17dPJJVmK0bO3oyh9F8qeXdM1ywV6t93F18+04dHP0HkrFzWcRvvHclKrlZIO3Pt746Uyy59PHNaaxGzNbliovv4OrttNz+XfUIegAAAAAAAAAAAAAAAAAAAAfP7x8+hGOvk0T22FsvNh77y44174/T120828NojSv129U/W87HdenDSPz07tb6N+jfLZMwVgwir9HJZevDPRMe8kwmcVI7c/XlGdObzo4d1s6z4z7unD6TTpLKbkJAAAAAAAAAAAAAAAAAAAAVXphrL5+2XD1uDetdc5H92FQ5prR6GUpYvm+7mvaZP5/Z5ibpUlZ8L1Ht9WQW/z3a/P0c+88s1bmcq1uzS8bWJLRDct6zUh89ymfde2S68sJP2V49I+XPP3yqtojNIs2cHOevyhIAAAAAAAAAAAAAAAAABxdtQgmuvj8vo898x491Mm6r6/J0Yd8V1ZyuUR1VnpjJOZpMN70Qd4l5qoXXl0rOvLXtfLF7Fu/ux4ss9kPp97MpKOutbxns5N0LZIcHnu1Zbr4uHG1/e6fC7dvuPbvSr3Km2v2OPeLAAAAAAAAAAAAAAAAAAMaVY+DObFz9CXHs6IrG1J3yE9naoRc7ydNI231P6Dhak3it7M7S0XxbZiu3SKlJmC5+nRtOrr0ZLTUNPRmNIu5RfFetwgPIfG3X7aa8VmSjbd25wWuXsfNfikqjfb1592TWsbGWKoFzGkAAAAAAAAAAAAAAAAAAV+pbuaJkbFXMsZvVL1WWs1TbYq/E18292XvXcHm769nuNDXsoWkXOMrs3eM4uYjJvqzw33my1+wUnGn0aJqMwW/j27cJrUVa5HR81WKu9+XVPwFvwtTPpUby1Tde4MJjl24x20fV/YWamAkAAAAAAAAAAAAAAAA5OurFN8NI6b5Qpbi1m+2h2XOZTniJSk13bP0jopZOytWTOY2S176zwT9DsUTX+/R7159PJJQ2Wu7DD3RZafcabTO2ysPxc19NgrN20irTtflSLwh5voplauaL5NJfVrp+lfoFf4dFLRY9PCyXj5V9TpOQgAAAAAAAAAAAAAAAAo124+a/wA/5PpWvK/zdd4vetcTPJvThk43y0Xio8rGwdFLN5XMea4dNEnGddLTULaY/h2hvJjLeshS7bUqQHbl03ShZc989R0UWesM7W2qYoG7vtEUnJDG9T6Lz1YWot327YdQ7cgAAAAAAAAAAAAAAAMNG3Xx6ePWVsfM0NWO/wApbgi7H4Vj2zcNoh9Ur6QqbSg054RXdtxrPRCy0FtTZIREjvSSjJDDg2icZtpEJ7NiF3yeJweSEnCudsz7Dnz2qzrz99vGPvq0eZeJjpHoZAAAAAAAAAAAAAAAAasd/mU6fN/lLafNuOc4M8az49Q8ipWNrPE8THrwe+4+p938+dXkL28XZm6+TPSJ7Th75+rz3Gz14R68HszCz8T6ezHj32WPuXtowbfdI1Ny8eZGtQkAAAAAAAAAAAAAAAAAB49Qw82KTrrlni4QGUv6Q6YRMOmBCaLEtFYWby8VpZMitdE77WYXKYUmHTAh/JnwhbLyScxm2JY++rwEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/EADEQAAICAQMCBQMFAAICAwAAAAIDAQQABRESEBMUISIxUBUyMyAjJDRgNUFDgCVCRP/aAAgBAQABBQL/ANDJOMD0SJco/wAUQRsHqkY4x/ijZvkTtIHyj/EsLaNugTwL/EsHeOgRyL/D8xjO9hN3gR3yV5EyM97IaM5ExP8Ag5njG5Fh7ZGf9x7YzpGR7Cfn/gJmBiZ5lh/dt0j2xnvEdA+048gP/AN+4Ohfdv8AoZkZOB9vQZ3H56S81+2H90foZkdB+3N/NU7x89/2voz2ic/76MyJz3npGJ9vnp8j32LJjeMnqzouOhz5eXFP2/POjzn2j2w4jPLfoe23lkRt0P7veYjaPnvfCHjkF5blkzvMh5RvxiNp85Io2zlO0Fk+crDaP8AyNs98mYiNyjI9uU5vtnvm8xPnGT55v5jHGP8AAFG8cZGM888s8s8s8unnkYC5gv8ABH7b79PPrGTnngTvP+EmYGPFLnCubZ4zeQumeeO8otROLetmJ/whTAjqfIpXHoECPJFioEpiew2Irb8nRxKsW3+E1RshVvHJ2h27NblOMOe9EyEByJKPvtxG42Shn+DvvktTsed5QwIzEiSvJrOEKyoPk4d8Mp+k1Xd+t/gZmBGmyW6izj4phfsRPeEbey1v7cmfiGV28rcbbB/xOiN3X/gdXtdpOnNldguC2ny8MHkbZHuenGz/AB6v9nl25SXh6FOxNWxEwQ/PzO0WnzYsaZIxYtBC2g/ZSY5OmdzLhhedZLIWRnJkmACjmj2O4j5/VX9qnmlcO61JyfaUGc4jpIkOCXHP2iya85UEYr5p7+xc+f1aWMsZpwB2N549rlkqZGVw/cn95cAU52G5Ow5SiTY6AFwjJlSMjq/OnOw2XgynlBParK4ylnbM1LjFFsquX7yYgxkNs3VI0/OxZT2H6WXG0t4mz51kERNvprjPujlW00vtgowmTMF6UsngTP22ycFEzvNNkxa1AJC3p1tdYgLxED9vzZlCwpGxidRrSsgGTOz/AB9Pb5Hi1+opkzdgetcjt0qnxsaomdwGTOqma6qTp8T83rL+CUPFLNVf6VwRMszskh5HyBeDHLJIhhZecwRYB8c4hOVS7U6qJcFM7TSsrBBvkHxMFHzRH4vVWtlriKTJQkTbLeBYIcoREd1pcmYE71YXBdEN7I6pBSrORSK/3qGkv7tT5m63s1TEqlfpXEjfcZHic82SZREcCnOBZHICOIMSLlglxVqO7anSu3suoidS78y20HjNTehnXT5mLlwh8YPZzvLiPERGE7lkHtkWc745JILJ4+HtnvQ6LkYZ4tPhkNh6flzOFrayXN6bb5p0yFy7xi/Pvt6dvQyNiw42iQ/eyf6zpgNN2nbror/L5fWbHBPSsrvvVXUmAZ2tWvjEXC+4/Ss/IX/mw/wt8jdGzC/r2CGvp+mx/Cv01irpWdNexEwUfLXX+ItdKkmDi1NELRY43NQHa3tyaz1vOebnTu/J/rT5oL1IP8FwuzQoXBRFq14hW09dIsd2r8rqTuzTraeyxFqgVYdOEBpVu2hN+q0WVeHidSGe+r+yJcTR5vnznB86/L0B5pLzTfiIpLAmnTDwiUAAOuJ5X50ieFAiqah8rqzB8Qmwhg3LagzxAtieL81S2XFYdxmocoYv8uJ+7or7cX9pfi1ICJSHSh0TNkJbvlu8iDhqyC/YrsxRc1fKakzuXOlHUFIrJvdtHZCxlynFedRKfEB9+L/HhCQ4j8mL+0vxXeb1r09AD4mazUagtDLLYfY6aWzuU/k3tgJf52Oof8VT1ERDUHAypdZzwfuwPxKpcM5qvR2GV3YHsX2WG8rrLyFYp02dSsf2Oulu7Vb5O0/nq7fzdVf8UMSRRpVicdRJsRpk4OmRyFK15cFk2IBmVImaz6KmRGm4WlnMXKLHk+m2vGn/AN1/5+q5/wDjaTu/U+RacLXQDiCqiBK0AhY6J/4wD7Z/UGY3a1RXYZv4x2RcsdtGolubpqgN6wbfGOmYtNIVhNqxZvcHutk4NP8A7zfy9NNQma9ZC0BQ3TY+R1GzFYO8TImAbOqWEMHpViWVK+mCOWA7dimrlp9bzKPxh+DC5ZX/ADL/ACL/ABaeM+LsDAWKVNbqqaR1rkzvOLmBbJptKNmWL0Kd8jq7u5bnVo8NRsbVH6aZZMbTmmM42d42tshtnTgKa9T7w+xX2Jjd33JR96vvX+HTYknlGx6YyCrWmQut0rVDsygPALO94fUr1uLbKLu/U+PcyEpMpM8ruhFSJgoeXJ9Wqdo6unEFvUEzXZmlcudedpiNiX7jPAVltIRxgfIl/i03l2sGSifAQVKNLdKM0kv2LTxHL/8AdzRH7H8frT+K+henSaEPJs6ZX4aZWamYHdnJUAyRlmnPlbm+Vqf7KvefKcHyR/8Af2RXd4fTc0gk7REHECfZq6duxtQkKrFtauxtcxDZQ8Sgx+N9suP8RaxFdlgtQXKRpXEIWzUUCunffLCX2IsSpqS0n01P4965x8bP9r/wN/LgxvkTuJeVZhrDSqtErIophUe44nLMzRXV1HZh6jWHGkLH26bHR00d/crfG6o/s1OlG14Zt694jpEb4FZ+7nv5sOKuqAwGi4gRqtxQ90Z3sh+IvNcRvI/2B/BMc13JVXp0x4VNQtrhLN1UG+JsCamL6LOVMLVYmr005/YufG6u/u2+gLNkjQZkIrBnc2z3xo8lWJ7qMGe42+spV9ttf3bztE8ZVkf11qJuatA8JIpyIkiZ+5bwWEOT2WZNJZYyo9f6KL/EVPi3MhKSKSLPD10rlx7REkRMRXgUKcBUzyPIgD+JXoNflpMV39mYoF7j/c6B+H/wUwLxGqL4vDTu7VppIb6fMVpJuDSjJahBuAZgTIMkxZl9C67c0R2zPi9abxr9K893TcQntwcxUmqbGW7LuPRIcrGatP8AIoSzwvLuK32tHGx5/wDm25DQZzO93PFV/OvYiIVI8BWyVHYLnTXZIYQoRF6e0VcOb7rO7byq3s2fi9Wd3LvTSj/d81mNs4wvDPmZVWCAM57UQSj/AJTmXKQmZMPTXGancOZfc/8APk/11fl0/jFOw0nOrW3JwwsKrehg9k9kt7RGmpv4oQE3mzEz2q/XT3d"... 39253 more characters
}
Erro ao aplicar log 5b06ed2d-27e9-4dfd-ba4e-4dd4d0e81e69: QueryFailedError: Duplicate entry '5ac5ac61-f7c5-4a63-93c2-fa19801570cc' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5ac5ac61-f7c5-4a63-93c2-fa19801570cc',
    'BODE',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-04T21:55:14.395Z
  ],
  driverError: Error: Duplicate entry '5ac5ac61-f7c5-4a63-93c2-fa19801570cc' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5ac5ac61-f7c5-4a63-93c2-fa19801570cc' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ac5ac61-f7c5-4a63-93c2-fa19801570cc', 'BODE', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:55:14.395', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5ac5ac61-f7c5-4a63-93c2-fa19801570cc' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ac5ac61-f7c5-4a63-93c2-fa19801570cc', 'BODE', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:55:14.395', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5ac5ac61-f7c5-4a63-93c2-fa19801570cc' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5ac5ac61-f7c5-4a63-93c2-fa19801570cc',
    'BODE',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-04T21:55:14.395Z
  ],
  driverError: Error: Duplicate entry '5ac5ac61-f7c5-4a63-93c2-fa19801570cc' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5ac5ac61-f7c5-4a63-93c2-fa19801570cc' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ac5ac61-f7c5-4a63-93c2-fa19801570cc', 'BODE', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:55:14.395', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5ac5ac61-f7c5-4a63-93c2-fa19801570cc' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ac5ac61-f7c5-4a63-93c2-fa19801570cc', 'BODE', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 21:55:14.395', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 25f625a3-cc94-450c-9606-07ac7b146065: QueryFailedError: Duplicate entry 'e8433c82-1573-41f2-9ebe-d8e12e24efa8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e8433c82-1573-41f2-9ebe-d8e12e24efa8',
    'GADO LOTE 01',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-04T22:02:21.062Z
  ],
  driverError: Error: Duplicate entry 'e8433c82-1573-41f2-9ebe-d8e12e24efa8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e8433c82-1573-41f2-9ebe-d8e12e24efa8' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e8433c82-1573-41f2-9ebe-d8e12e24efa8', 'GADO LOTE 01', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 22:02:21.062', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e8433c82-1573-41f2-9ebe-d8e12e24efa8' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e8433c82-1573-41f2-9ebe-d8e12e24efa8', 'GADO LOTE 01', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 22:02:21.062', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e8433c82-1573-41f2-9ebe-d8e12e24efa8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e8433c82-1573-41f2-9ebe-d8e12e24efa8',
    'GADO LOTE 01',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-04T22:02:21.062Z
  ],
  driverError: Error: Duplicate entry 'e8433c82-1573-41f2-9ebe-d8e12e24efa8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e8433c82-1573-41f2-9ebe-d8e12e24efa8' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e8433c82-1573-41f2-9ebe-d8e12e24efa8', 'GADO LOTE 01', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 22:02:21.062', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e8433c82-1573-41f2-9ebe-d8e12e24efa8' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e8433c82-1573-41f2-9ebe-d8e12e24efa8', 'GADO LOTE 01', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-04 22:02:21.062', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 968ef2d2-d8b9-4aa4-a5cb-7b51ace67c05: QueryFailedError: Duplicate entry '2acec692-c427-4721-9c53-d66305d4e6ac' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2acec692-c427-4721-9c53-d66305d4e6ac',
    'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:18:23.620Z
  ],
  driverError: Error: Duplicate entry '2acec692-c427-4721-9c53-d66305d4e6ac' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2acec692-c427-4721-9c53-d66305d4e6ac' for key 'PRIMARY'",
    sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2acec692-c427-4721-9c53-d66305d4e6ac', 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:18:23.620', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2acec692-c427-4721-9c53-d66305d4e6ac' for key 'PRIMARY'",
  sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2acec692-c427-4721-9c53-d66305d4e6ac', 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:18:23.620', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2acec692-c427-4721-9c53-d66305d4e6ac' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2acec692-c427-4721-9c53-d66305d4e6ac',
    'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:18:23.620Z
  ],
  driverError: Error: Duplicate entry '2acec692-c427-4721-9c53-d66305d4e6ac' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2acec692-c427-4721-9c53-d66305d4e6ac' for key 'PRIMARY'",
    sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2acec692-c427-4721-9c53-d66305d4e6ac', 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:18:23.620', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2acec692-c427-4721-9c53-d66305d4e6ac' for key 'PRIMARY'",
  sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2acec692-c427-4721-9c53-d66305d4e6ac', 'ad09d443-6e10-4ba4-a09d-ab63fc2f75a2', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:18:23.620', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 24b419c7-1703-4bb6-9640-bce0fd7ce556: QueryFailedError: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '368064ae-ed6a-41a6-b7bf-76d0963b3951',
    '87dbab08-c83b-4b30-910f-274f6cf6a4ad',
    '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0',
    2350,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:59:15.379Z
  ],
  driverError: Error: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '368064ae-ed6a-41a6-b7bf-76d0963b3951',
    '87dbab08-c83b-4b30-910f-274f6cf6a4ad',
    '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0',
    2350,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:59:15.379Z
  ],
  driverError: Error: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 24cdff1d-af6c-4b44-8cc5-7ad7427d597f: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log f0108eae-bdfd-4dc6-8772-dc00803d317c: QueryFailedError: Duplicate entry 'fa2af77d-5efc-4f3b-96ba-15beb4ea6241' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'fa2af77d-5efc-4f3b-96ba-15beb4ea6241',
    'bode',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:39:27.896Z
  ],
  driverError: Error: Duplicate entry 'fa2af77d-5efc-4f3b-96ba-15beb4ea6241' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'fa2af77d-5efc-4f3b-96ba-15beb4ea6241' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('fa2af77d-5efc-4f3b-96ba-15beb4ea6241', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:39:27.896', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'fa2af77d-5efc-4f3b-96ba-15beb4ea6241' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('fa2af77d-5efc-4f3b-96ba-15beb4ea6241', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:39:27.896', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'fa2af77d-5efc-4f3b-96ba-15beb4ea6241' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'fa2af77d-5efc-4f3b-96ba-15beb4ea6241',
    'bode',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:39:27.896Z
  ],
  driverError: Error: Duplicate entry 'fa2af77d-5efc-4f3b-96ba-15beb4ea6241' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'fa2af77d-5efc-4f3b-96ba-15beb4ea6241' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('fa2af77d-5efc-4f3b-96ba-15beb4ea6241', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:39:27.896', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'fa2af77d-5efc-4f3b-96ba-15beb4ea6241' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('fa2af77d-5efc-4f3b-96ba-15beb4ea6241', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:39:27.896', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 68fd3741-0cd7-4f17-aad6-262c40b1adaa: QueryFailedError: Duplicate entry '516c219d-b2f0-49e9-9ff8-bd2e0f326933' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '516c219d-b2f0-49e9-9ff8-bd2e0f326933',
    'bode',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:40:19.615Z
  ],
  driverError: Error: Duplicate entry '516c219d-b2f0-49e9-9ff8-bd2e0f326933' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '516c219d-b2f0-49e9-9ff8-bd2e0f326933' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('516c219d-b2f0-49e9-9ff8-bd2e0f326933', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:40:19.615', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '516c219d-b2f0-49e9-9ff8-bd2e0f326933' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('516c219d-b2f0-49e9-9ff8-bd2e0f326933', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:40:19.615', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '516c219d-b2f0-49e9-9ff8-bd2e0f326933' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '516c219d-b2f0-49e9-9ff8-bd2e0f326933',
    'bode',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:40:19.615Z
  ],
  driverError: Error: Duplicate entry '516c219d-b2f0-49e9-9ff8-bd2e0f326933' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '516c219d-b2f0-49e9-9ff8-bd2e0f326933' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('516c219d-b2f0-49e9-9ff8-bd2e0f326933', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:40:19.615', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '516c219d-b2f0-49e9-9ff8-bd2e0f326933' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('516c219d-b2f0-49e9-9ff8-bd2e0f326933', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:40:19.615', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 04bf2758-281d-4434-9a4f-6e62b845c456: QueryFailedError: Duplicate entry '2f278e38-8f7f-4e56-8688-a6e25cc4183e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2f278e38-8f7f-4e56-8688-a6e25cc4183e',
    'bode',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:42:11.309Z
  ],
  driverError: Error: Duplicate entry '2f278e38-8f7f-4e56-8688-a6e25cc4183e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2f278e38-8f7f-4e56-8688-a6e25cc4183e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2f278e38-8f7f-4e56-8688-a6e25cc4183e', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:42:11.309', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2f278e38-8f7f-4e56-8688-a6e25cc4183e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2f278e38-8f7f-4e56-8688-a6e25cc4183e', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:42:11.309', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2f278e38-8f7f-4e56-8688-a6e25cc4183e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2f278e38-8f7f-4e56-8688-a6e25cc4183e',
    'bode',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:42:11.309Z
  ],
  driverError: Error: Duplicate entry '2f278e38-8f7f-4e56-8688-a6e25cc4183e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2f278e38-8f7f-4e56-8688-a6e25cc4183e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2f278e38-8f7f-4e56-8688-a6e25cc4183e', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:42:11.309', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2f278e38-8f7f-4e56-8688-a6e25cc4183e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2f278e38-8f7f-4e56-8688-a6e25cc4183e', 'bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:42:11.309', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 29bb0b71-d5d3-4c7a-8404-d19fed5c7cef: QueryFailedError: Duplicate entry 'f3dcfd17-01b9-4287-9316-984581196e52' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f3dcfd17-01b9-4287-9316-984581196e52',
    'Gado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:43:36.783Z
  ],
  driverError: Error: Duplicate entry 'f3dcfd17-01b9-4287-9316-984581196e52' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f3dcfd17-01b9-4287-9316-984581196e52' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f3dcfd17-01b9-4287-9316-984581196e52', 'Gado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:43:36.783', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f3dcfd17-01b9-4287-9316-984581196e52' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f3dcfd17-01b9-4287-9316-984581196e52', 'Gado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:43:36.783', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f3dcfd17-01b9-4287-9316-984581196e52' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f3dcfd17-01b9-4287-9316-984581196e52',
    'Gado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:43:36.783Z
  ],
  driverError: Error: Duplicate entry 'f3dcfd17-01b9-4287-9316-984581196e52' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f3dcfd17-01b9-4287-9316-984581196e52' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f3dcfd17-01b9-4287-9316-984581196e52', 'Gado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:43:36.783', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f3dcfd17-01b9-4287-9316-984581196e52' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f3dcfd17-01b9-4287-9316-984581196e52', 'Gado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:43:36.783', DEFAULT, DEFAULT)"
}
Erro ao aplicar log b5c97c58-659c-4de2-8807-7c5f63f4ea84: QueryFailedError: Duplicate entry '3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf',
    'Bode',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:44:13.468Z
  ],
  driverError: Error: Duplicate entry '3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf', 'Bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:44:13.468', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf', 'Bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:44:13.468', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf',
    'Bode',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:44:13.468Z
  ],
  driverError: Error: Duplicate entry '3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf', 'Bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:44:13.468', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3c020a5d-e9ff-428d-b5ea-8dff1d2fefaf', 'Bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:44:13.468', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 18575e60-a01b-47bc-9589-5e42284eca66: QueryFailedError: Duplicate entry 'd43e4d1f-6183-4416-919e-f822620acc41' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd43e4d1f-6183-4416-919e-f822620acc41',
    'Bode',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:45:46.606Z
  ],
  driverError: Error: Duplicate entry 'd43e4d1f-6183-4416-919e-f822620acc41' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd43e4d1f-6183-4416-919e-f822620acc41' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d43e4d1f-6183-4416-919e-f822620acc41', 'Bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:45:46.606', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd43e4d1f-6183-4416-919e-f822620acc41' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d43e4d1f-6183-4416-919e-f822620acc41', 'Bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:45:46.606', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd43e4d1f-6183-4416-919e-f822620acc41' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd43e4d1f-6183-4416-919e-f822620acc41',
    'Bode',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T12:45:46.606Z
  ],
  driverError: Error: Duplicate entry 'd43e4d1f-6183-4416-919e-f822620acc41' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd43e4d1f-6183-4416-919e-f822620acc41' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d43e4d1f-6183-4416-919e-f822620acc41', 'Bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:45:46.606', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd43e4d1f-6183-4416-919e-f822620acc41' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d43e4d1f-6183-4416-919e-f822620acc41', 'Bode', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 12:45:46.606', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e4d39a8d-ac36-4803-9dd5-319dd96fa00c: QueryFailedError: Duplicate entry 'b6f674c7-9236-4e92-ab1b-676f4834300b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b6f674c7-9236-4e92-ab1b-676f4834300b',
    'Bolsa de Couro Vivase Store',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T13:12:19.580Z
  ],
  driverError: Error: Duplicate entry 'b6f674c7-9236-4e92-ab1b-676f4834300b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b6f674c7-9236-4e92-ab1b-676f4834300b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f674c7-9236-4e92-ab1b-676f4834300b', 'Bolsa de Couro Vivase Store', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 13:12:19.580', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b6f674c7-9236-4e92-ab1b-676f4834300b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f674c7-9236-4e92-ab1b-676f4834300b', 'Bolsa de Couro Vivase Store', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 13:12:19.580', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b6f674c7-9236-4e92-ab1b-676f4834300b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b6f674c7-9236-4e92-ab1b-676f4834300b',
    'Bolsa de Couro Vivase Store',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T13:12:19.580Z
  ],
  driverError: Error: Duplicate entry 'b6f674c7-9236-4e92-ab1b-676f4834300b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b6f674c7-9236-4e92-ab1b-676f4834300b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f674c7-9236-4e92-ab1b-676f4834300b', 'Bolsa de Couro Vivase Store', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 13:12:19.580', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b6f674c7-9236-4e92-ab1b-676f4834300b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f674c7-9236-4e92-ab1b-676f4834300b', 'Bolsa de Couro Vivase Store', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 13:12:19.580', DEFAULT, DEFAULT)"
}
Erro ao aplicar log ee0a0fa5-ab0c-49cc-928e-51fa044a9359: QueryFailedError: Duplicate entry 'ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa',
    'balde Graxa 10 kgs Carmaq',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:08:18.907Z
  ],
  driverError: Error: Duplicate entry 'ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa', 'balde Graxa 10 kgs Carmaq', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:08:18.907', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa', 'balde Graxa 10 kgs Carmaq', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:08:18.907', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa',
    'balde Graxa 10 kgs Carmaq',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:08:18.907Z
  ],
  driverError: Error: Duplicate entry 'ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa', 'balde Graxa 10 kgs Carmaq', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:08:18.907', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ccf7a1d9-8afa-4d61-8c31-380fa1bd42fa', 'balde Graxa 10 kgs Carmaq', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:08:18.907', DEFAULT, DEFAULT)"
}
Erro ao aplicar log efe56cdf-cb96-4f1e-98e8-39efa39616dd: QueryFailedError: Duplicate entry '2a20ddce-d015-4594-b527-8cd298981cd2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2a20ddce-d015-4594-b527-8cd298981cd2',
    'Bomba Costa 12 Lts Pulvemar',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:08:41.627Z
  ],
  driverError: Error: Duplicate entry '2a20ddce-d015-4594-b527-8cd298981cd2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2a20ddce-d015-4594-b527-8cd298981cd2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2a20ddce-d015-4594-b527-8cd298981cd2', 'Bomba Costa 12 Lts Pulvemar', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:08:41.627', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2a20ddce-d015-4594-b527-8cd298981cd2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2a20ddce-d015-4594-b527-8cd298981cd2', 'Bomba Costa 12 Lts Pulvemar', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:08:41.627', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2a20ddce-d015-4594-b527-8cd298981cd2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2a20ddce-d015-4594-b527-8cd298981cd2',
    'Bomba Costa 12 Lts Pulvemar',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:08:41.627Z
  ],
  driverError: Error: Duplicate entry '2a20ddce-d015-4594-b527-8cd298981cd2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2a20ddce-d015-4594-b527-8cd298981cd2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2a20ddce-d015-4594-b527-8cd298981cd2', 'Bomba Costa 12 Lts Pulvemar', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:08:41.627', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2a20ddce-d015-4594-b527-8cd298981cd2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2a20ddce-d015-4594-b527-8cd298981cd2', 'Bomba Costa 12 Lts Pulvemar', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:08:41.627', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 38d0077a-6555-4918-9714-2983dd156973: QueryFailedError: Duplicate entry '3a9328f3-1a80-48ae-83f9-d29d3d44d6f7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3a9328f3-1a80-48ae-83f9-d29d3d44d6f7',
    'Orquidea Branca Lucia Zanotto',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:10:10.001Z
  ],
  driverError: Error: Duplicate entry '3a9328f3-1a80-48ae-83f9-d29d3d44d6f7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3a9328f3-1a80-48ae-83f9-d29d3d44d6f7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3a9328f3-1a80-48ae-83f9-d29d3d44d6f7', 'Orquidea Branca Lucia Zanotto', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:10.001', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3a9328f3-1a80-48ae-83f9-d29d3d44d6f7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3a9328f3-1a80-48ae-83f9-d29d3d44d6f7', 'Orquidea Branca Lucia Zanotto', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:10.001', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3a9328f3-1a80-48ae-83f9-d29d3d44d6f7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3a9328f3-1a80-48ae-83f9-d29d3d44d6f7',
    'Orquidea Branca Lucia Zanotto',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:10:10.001Z
  ],
  driverError: Error: Duplicate entry '3a9328f3-1a80-48ae-83f9-d29d3d44d6f7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3a9328f3-1a80-48ae-83f9-d29d3d44d6f7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3a9328f3-1a80-48ae-83f9-d29d3d44d6f7', 'Orquidea Branca Lucia Zanotto', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:10.001', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3a9328f3-1a80-48ae-83f9-d29d3d44d6f7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3a9328f3-1a80-48ae-83f9-d29d3d44d6f7', 'Orquidea Branca Lucia Zanotto', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:10.001', DEFAULT, DEFAULT)"
}
Erro ao aplicar log daf0d804-2479-452e-98e8-f08b74fa18e5: QueryFailedError: Duplicate entry '3cd30f52-e312-4dd5-bb82-213cf12492ef' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3cd30f52-e312-4dd5-bb82-213cf12492ef',
    'Orquidea Roxa Guiraldi',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:10:32.721Z
  ],
  driverError: Error: Duplicate entry '3cd30f52-e312-4dd5-bb82-213cf12492ef' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3cd30f52-e312-4dd5-bb82-213cf12492ef' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3cd30f52-e312-4dd5-bb82-213cf12492ef', 'Orquidea Roxa Guiraldi', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:32.721', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3cd30f52-e312-4dd5-bb82-213cf12492ef' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3cd30f52-e312-4dd5-bb82-213cf12492ef', 'Orquidea Roxa Guiraldi', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:32.721', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3cd30f52-e312-4dd5-bb82-213cf12492ef' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3cd30f52-e312-4dd5-bb82-213cf12492ef',
    'Orquidea Roxa Guiraldi',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:10:32.721Z
  ],
  driverError: Error: Duplicate entry '3cd30f52-e312-4dd5-bb82-213cf12492ef' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3cd30f52-e312-4dd5-bb82-213cf12492ef' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3cd30f52-e312-4dd5-bb82-213cf12492ef', 'Orquidea Roxa Guiraldi', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:32.721', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3cd30f52-e312-4dd5-bb82-213cf12492ef' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3cd30f52-e312-4dd5-bb82-213cf12492ef', 'Orquidea Roxa Guiraldi', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:32.721', DEFAULT, DEFAULT)"
}
Erro ao aplicar log d8ee5b12-6630-433d-9bb2-ffbc9a108110: QueryFailedError: Duplicate entry 'b55923b6-c10c-4421-891b-66d938a029bc' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b55923b6-c10c-4421-891b-66d938a029bc',
    'Bolsa Feminina Vivazy',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:10:53.137Z
  ],
  driverError: Error: Duplicate entry 'b55923b6-c10c-4421-891b-66d938a029bc' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b55923b6-c10c-4421-891b-66d938a029bc' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b55923b6-c10c-4421-891b-66d938a029bc', 'Bolsa Feminina Vivazy', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:53.137', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b55923b6-c10c-4421-891b-66d938a029bc' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b55923b6-c10c-4421-891b-66d938a029bc', 'Bolsa Feminina Vivazy', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:53.137', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b55923b6-c10c-4421-891b-66d938a029bc' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b55923b6-c10c-4421-891b-66d938a029bc',
    'Bolsa Feminina Vivazy',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:10:53.137Z
  ],
  driverError: Error: Duplicate entry 'b55923b6-c10c-4421-891b-66d938a029bc' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b55923b6-c10c-4421-891b-66d938a029bc' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b55923b6-c10c-4421-891b-66d938a029bc', 'Bolsa Feminina Vivazy', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:53.137', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b55923b6-c10c-4421-891b-66d938a029bc' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b55923b6-c10c-4421-891b-66d938a029bc', 'Bolsa Feminina Vivazy', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:10:53.137', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2d3de65c-5ae4-44bd-ad00-5c9b35c2a0f9: QueryFailedError: Duplicate entry 'cbec5bbc-da40-4d48-9ab7-10deba75d69c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'cbec5bbc-da40-4d48-9ab7-10deba75d69c',
    'Cesta de Frutas Galera da Laranja de Tupã',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:11:47.747Z
  ],
  driverError: Error: Duplicate entry 'cbec5bbc-da40-4d48-9ab7-10deba75d69c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'cbec5bbc-da40-4d48-9ab7-10deba75d69c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cbec5bbc-da40-4d48-9ab7-10deba75d69c', 'Cesta de Frutas Galera da Laranja de Tupã', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:11:47.747', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'cbec5bbc-da40-4d48-9ab7-10deba75d69c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cbec5bbc-da40-4d48-9ab7-10deba75d69c', 'Cesta de Frutas Galera da Laranja de Tupã', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:11:47.747', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'cbec5bbc-da40-4d48-9ab7-10deba75d69c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'cbec5bbc-da40-4d48-9ab7-10deba75d69c',
    'Cesta de Frutas Galera da Laranja de Tupã',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:11:47.747Z
  ],
  driverError: Error: Duplicate entry 'cbec5bbc-da40-4d48-9ab7-10deba75d69c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'cbec5bbc-da40-4d48-9ab7-10deba75d69c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cbec5bbc-da40-4d48-9ab7-10deba75d69c', 'Cesta de Frutas Galera da Laranja de Tupã', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:11:47.747', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'cbec5bbc-da40-4d48-9ab7-10deba75d69c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cbec5bbc-da40-4d48-9ab7-10deba75d69c', 'Cesta de Frutas Galera da Laranja de Tupã', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:11:47.747', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 00131c30-38e7-4a41-9b3b-32323ac5c52e: QueryFailedError: Duplicate entry '14121527-0f7a-454f-bf76-46f478485c98' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '14121527-0f7a-454f-bf76-46f478485c98',
    'Bolo Renata Genaro',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:12:28.998Z
  ],
  driverError: Error: Duplicate entry '14121527-0f7a-454f-bf76-46f478485c98' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '14121527-0f7a-454f-bf76-46f478485c98' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('14121527-0f7a-454f-bf76-46f478485c98', 'Bolo Renata Genaro', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:12:28.998', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '14121527-0f7a-454f-bf76-46f478485c98' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('14121527-0f7a-454f-bf76-46f478485c98', 'Bolo Renata Genaro', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:12:28.998', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '14121527-0f7a-454f-bf76-46f478485c98' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '14121527-0f7a-454f-bf76-46f478485c98',
    'Bolo Renata Genaro',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:12:28.998Z
  ],
  driverError: Error: Duplicate entry '14121527-0f7a-454f-bf76-46f478485c98' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '14121527-0f7a-454f-bf76-46f478485c98' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('14121527-0f7a-454f-bf76-46f478485c98', 'Bolo Renata Genaro', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:12:28.998', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '14121527-0f7a-454f-bf76-46f478485c98' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('14121527-0f7a-454f-bf76-46f478485c98', 'Bolo Renata Genaro', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:12:28.998', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3c60254d-122b-4fc6-9564-ad578df57d46: QueryFailedError: Duplicate entry '6a4146c6-69ef-4c67-8a78-70adb2b9cc50' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6a4146c6-69ef-4c67-8a78-70adb2b9cc50',
    'Bolo Maria Alice',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:12:41.722Z
  ],
  driverError: Error: Duplicate entry '6a4146c6-69ef-4c67-8a78-70adb2b9cc50' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6a4146c6-69ef-4c67-8a78-70adb2b9cc50' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6a4146c6-69ef-4c67-8a78-70adb2b9cc50', 'Bolo Maria Alice', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:12:41.722', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6a4146c6-69ef-4c67-8a78-70adb2b9cc50' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6a4146c6-69ef-4c67-8a78-70adb2b9cc50', 'Bolo Maria Alice', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:12:41.722', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '6a4146c6-69ef-4c67-8a78-70adb2b9cc50' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6a4146c6-69ef-4c67-8a78-70adb2b9cc50',
    'Bolo Maria Alice',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:12:41.722Z
  ],
  driverError: Error: Duplicate entry '6a4146c6-69ef-4c67-8a78-70adb2b9cc50' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6a4146c6-69ef-4c67-8a78-70adb2b9cc50' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6a4146c6-69ef-4c67-8a78-70adb2b9cc50', 'Bolo Maria Alice', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:12:41.722', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6a4146c6-69ef-4c67-8a78-70adb2b9cc50' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6a4146c6-69ef-4c67-8a78-70adb2b9cc50', 'Bolo Maria Alice', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:12:41.722', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1bbd390f-6ec3-4820-bf0a-04ba76518b93: QueryFailedError: Duplicate entry '4a2d37eb-414a-4473-9e03-56ef49e68b70' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4a2d37eb-414a-4473-9e03-56ef49e68b70',
    'Pinga amigos da Cachoeira',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:38:21.243Z
  ],
  driverError: Error: Duplicate entry '4a2d37eb-414a-4473-9e03-56ef49e68b70' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4a2d37eb-414a-4473-9e03-56ef49e68b70' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4a2d37eb-414a-4473-9e03-56ef49e68b70', 'Pinga amigos da Cachoeira', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:38:21.243', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4a2d37eb-414a-4473-9e03-56ef49e68b70' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4a2d37eb-414a-4473-9e03-56ef49e68b70', 'Pinga amigos da Cachoeira', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:38:21.243', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4a2d37eb-414a-4473-9e03-56ef49e68b70' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4a2d37eb-414a-4473-9e03-56ef49e68b70',
    'Pinga amigos da Cachoeira',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:38:21.243Z
  ],
  driverError: Error: Duplicate entry '4a2d37eb-414a-4473-9e03-56ef49e68b70' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4a2d37eb-414a-4473-9e03-56ef49e68b70' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4a2d37eb-414a-4473-9e03-56ef49e68b70', 'Pinga amigos da Cachoeira', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:38:21.243', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4a2d37eb-414a-4473-9e03-56ef49e68b70' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4a2d37eb-414a-4473-9e03-56ef49e68b70', 'Pinga amigos da Cachoeira', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:38:21.243', DEFAULT, DEFAULT)"
}
Erro ao aplicar log a5bcdf77-17b2-4533-8511-6ef215080788: QueryFailedError: Duplicate entry 'c858149a-1cdb-458d-9201-178fead6026c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c858149a-1cdb-458d-9201-178fead6026c',
    'Campari amigos da cachoeira',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:38:50.837Z
  ],
  driverError: Error: Duplicate entry 'c858149a-1cdb-458d-9201-178fead6026c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c858149a-1cdb-458d-9201-178fead6026c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c858149a-1cdb-458d-9201-178fead6026c', 'Campari amigos da cachoeira', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:38:50.837', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c858149a-1cdb-458d-9201-178fead6026c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c858149a-1cdb-458d-9201-178fead6026c', 'Campari amigos da cachoeira', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:38:50.837', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'c858149a-1cdb-458d-9201-178fead6026c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c858149a-1cdb-458d-9201-178fead6026c',
    'Campari amigos da cachoeira',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:38:50.837Z
  ],
  driverError: Error: Duplicate entry 'c858149a-1cdb-458d-9201-178fead6026c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c858149a-1cdb-458d-9201-178fead6026c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c858149a-1cdb-458d-9201-178fead6026c', 'Campari amigos da cachoeira', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:38:50.837', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c858149a-1cdb-458d-9201-178fead6026c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c858149a-1cdb-458d-9201-178fead6026c', 'Campari amigos da cachoeira', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:38:50.837', DEFAULT, DEFAULT)"
}
Erro ao aplicar log a1b6048b-efea-4458-811a-cf590a742524: QueryFailedError: Duplicate entry '4722917d-ec6d-47b0-a627-55e7ce23857d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4722917d-ec6d-47b0-a627-55e7ce23857d',
    'Meia Leitoa',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:48:20.817Z
  ],
  driverError: Error: Duplicate entry '4722917d-ec6d-47b0-a627-55e7ce23857d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4722917d-ec6d-47b0-a627-55e7ce23857d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4722917d-ec6d-47b0-a627-55e7ce23857d', 'Meia Leitoa', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:48:20.817', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4722917d-ec6d-47b0-a627-55e7ce23857d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4722917d-ec6d-47b0-a627-55e7ce23857d', 'Meia Leitoa', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:48:20.817', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4722917d-ec6d-47b0-a627-55e7ce23857d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4722917d-ec6d-47b0-a627-55e7ce23857d',
    'Meia Leitoa',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:48:20.817Z
  ],
  driverError: Error: Duplicate entry '4722917d-ec6d-47b0-a627-55e7ce23857d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4722917d-ec6d-47b0-a627-55e7ce23857d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4722917d-ec6d-47b0-a627-55e7ce23857d', 'Meia Leitoa', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:48:20.817', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4722917d-ec6d-47b0-a627-55e7ce23857d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4722917d-ec6d-47b0-a627-55e7ce23857d', 'Meia Leitoa', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:48:20.817', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 8a6ad10c-8013-4b2f-befb-e539d15ef125: QueryFailedError: Duplicate entry '82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d',
    'Leitoa Cheia',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:48:36.905Z
  ],
  driverError: Error: Duplicate entry '82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d', 'Leitoa Cheia', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:48:36.905', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d', 'Leitoa Cheia', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:48:36.905', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d',
    'Leitoa Cheia',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T14:48:36.905Z
  ],
  driverError: Error: Duplicate entry '82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d', 'Leitoa Cheia', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:48:36.905', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82b3cb8f-9b7c-44ca-a9f1-fa98938e2d3d', 'Leitoa Cheia', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 14:48:36.905', DEFAULT, DEFAULT)"
}
Erro ao aplicar log da859d85-320c-478e-8f45-e62eb37c8e1a: QueryFailedError: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71bc1031-d62a-49a1-a7bf-9b0b1aea264f',
    'GADO 34 C',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:10:43.724Z
  ],
  driverError: Error: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71bc1031-d62a-49a1-a7bf-9b0b1aea264f',
    'GADO 34 C',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:10:43.724Z
  ],
  driverError: Error: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3cf8023c-77a1-487e-a54c-8d3c32938e4b: QueryFailedError: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2b696694-6204-446d-a549-8114efa71732',
    'gad',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:18:01.412Z
  ],
  driverError: Error: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2b696694-6204-446d-a549-8114efa71732',
    'gad',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:18:01.412Z
  ],
  driverError: Error: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e9c2c142-4c69-409a-9e6e-de366da4aa52: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 243465f9-d2e9-445f-869c-5d16df471e66: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log df314178-766a-4f40-bc25-63d896b52969: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log e496f6ff-d904-4cdb-ad51-7aaae75d6176: QueryFailedError: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52061bed-8464-45f0-8a8b-640d863e903e',
    'LICOR 43',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:29:39.706Z
  ],
  driverError: Error: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52061bed-8464-45f0-8a8b-640d863e903e',
    'LICOR 43',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:29:39.706Z
  ],
  driverError: Error: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f4ac8889-cd51-4449-bda0-470679967d91: QueryFailedError: Duplicate entry '83150cb7-5a67-4f46-873b-76b90cf5135c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '83150cb7-5a67-4f46-873b-76b90cf5135c',
    'Safra Rutral Citros Tabatinga',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:01:53.964Z
  ],
  driverError: Error: Duplicate entry '83150cb7-5a67-4f46-873b-76b90cf5135c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '83150cb7-5a67-4f46-873b-76b90cf5135c' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('83150cb7-5a67-4f46-873b-76b90cf5135c', 'Safra Rutral Citros Tabatinga', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:01:53.964', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '83150cb7-5a67-4f46-873b-76b90cf5135c' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('83150cb7-5a67-4f46-873b-76b90cf5135c', 'Safra Rutral Citros Tabatinga', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:01:53.964', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '83150cb7-5a67-4f46-873b-76b90cf5135c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '83150cb7-5a67-4f46-873b-76b90cf5135c',
    'Safra Rutral Citros Tabatinga',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:01:53.964Z
  ],
  driverError: Error: Duplicate entry '83150cb7-5a67-4f46-873b-76b90cf5135c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '83150cb7-5a67-4f46-873b-76b90cf5135c' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('83150cb7-5a67-4f46-873b-76b90cf5135c', 'Safra Rutral Citros Tabatinga', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:01:53.964', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '83150cb7-5a67-4f46-873b-76b90cf5135c' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('83150cb7-5a67-4f46-873b-76b90cf5135c', 'Safra Rutral Citros Tabatinga', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:01:53.964', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1ab073d4-57ef-453a-be7b-e42bf6838d49: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log f0860646-4cfb-4ba0-bdd4-3a20de4b475f: QueryFailedError: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0ea8fc7e-fff6-4436-9970-e07f987b1b61',
    'BOLO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:40:44.554Z
  ],
  driverError: Error: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0ea8fc7e-fff6-4436-9970-e07f987b1b61',
    'BOLO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:40:44.554Z
  ],
  driverError: Error: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 03dfe076-b54a-41b6-958e-c3b2c0a5f053: QueryFailedError: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '070eed15-b100-4d30-b653-bfd3e986ccdd',
    'CUITELO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:43:00.798Z
  ],
  driverError: Error: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '070eed15-b100-4d30-b653-bfd3e986ccdd',
    'CUITELO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:43:00.798Z
  ],
  driverError: Error: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 84fbeb85-4d1b-428d-89c3-7813ab64a7b6: QueryFailedError: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '198cbed7-c07d-4212-9cda-da19d5bc86c7',
    'BOLO NINHO TRUFADO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:45:27.663Z
  ],
  driverError: Error: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '198cbed7-c07d-4212-9cda-da19d5bc86c7',
    'BOLO NINHO TRUFADO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:45:27.663Z
  ],
  driverError: Error: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7025a210-e759-4b54-aa56-4bc87c95d4e2: QueryFailedError: Duplicate entry '039676cf-69c3-4cac-ac8f-4f06e40c38e5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '039676cf-69c3-4cac-ac8f-4f06e40c38e5',
    'Balde de Wisque OLD ',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:13:13.095Z
  ],
  driverError: Error: Duplicate entry '039676cf-69c3-4cac-ac8f-4f06e40c38e5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '039676cf-69c3-4cac-ac8f-4f06e40c38e5' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('039676cf-69c3-4cac-ac8f-4f06e40c38e5', 'Balde de Wisque OLD ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:13:13.095', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '039676cf-69c3-4cac-ac8f-4f06e40c38e5' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('039676cf-69c3-4cac-ac8f-4f06e40c38e5', 'Balde de Wisque OLD ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:13:13.095', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '039676cf-69c3-4cac-ac8f-4f06e40c38e5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '039676cf-69c3-4cac-ac8f-4f06e40c38e5',
    'Balde de Wisque OLD ',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:13:13.095Z
  ],
  driverError: Error: Duplicate entry '039676cf-69c3-4cac-ac8f-4f06e40c38e5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '039676cf-69c3-4cac-ac8f-4f06e40c38e5' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('039676cf-69c3-4cac-ac8f-4f06e40c38e5', 'Balde de Wisque OLD ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:13:13.095', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '039676cf-69c3-4cac-ac8f-4f06e40c38e5' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('039676cf-69c3-4cac-ac8f-4f06e40c38e5', 'Balde de Wisque OLD ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:13:13.095', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e6658c2a-65b0-4852-a9ae-493f98ad9d6e: QueryFailedError: Duplicate entry '7cba9dbb-1648-43a6-951d-cf535e78a907' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7cba9dbb-1648-43a6-951d-cf535e78a907',
    'Marli Braccialli',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:17:07.608Z
  ],
  driverError: Error: Duplicate entry '7cba9dbb-1648-43a6-951d-cf535e78a907' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7cba9dbb-1648-43a6-951d-cf535e78a907' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cba9dbb-1648-43a6-951d-cf535e78a907', 'Marli Braccialli', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:17:07.608', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7cba9dbb-1648-43a6-951d-cf535e78a907' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cba9dbb-1648-43a6-951d-cf535e78a907', 'Marli Braccialli', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:17:07.608', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '7cba9dbb-1648-43a6-951d-cf535e78a907' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7cba9dbb-1648-43a6-951d-cf535e78a907',
    'Marli Braccialli',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:17:07.608Z
  ],
  driverError: Error: Duplicate entry '7cba9dbb-1648-43a6-951d-cf535e78a907' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7cba9dbb-1648-43a6-951d-cf535e78a907' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cba9dbb-1648-43a6-951d-cf535e78a907', 'Marli Braccialli', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:17:07.608', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7cba9dbb-1648-43a6-951d-cf535e78a907' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cba9dbb-1648-43a6-951d-cf535e78a907', 'Marli Braccialli', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:17:07.608', DEFAULT, DEFAULT)"
}
Erro ao aplicar log dc1a13f2-8987-4648-9b8d-58bc71cedced: QueryFailedError: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '82722427-5bb3-42f2-bd9b-25d5a0b03cba',
    'CARRIOLA DE LATINHAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:50:09.841Z
  ],
  driverError: Error: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '82722427-5bb3-42f2-bd9b-25d5a0b03cba',
    'CARRIOLA DE LATINHAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:50:09.841Z
  ],
  driverError: Error: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 24b419c7-1703-4bb6-9640-bce0fd7ce556: QueryFailedError: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '368064ae-ed6a-41a6-b7bf-76d0963b3951',
    '87dbab08-c83b-4b30-910f-274f6cf6a4ad',
    '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0',
    2350,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:59:15.379Z
  ],
  driverError: Error: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '368064ae-ed6a-41a6-b7bf-76d0963b3951',
    '87dbab08-c83b-4b30-910f-274f6cf6a4ad',
    '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0',
    2350,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:59:15.379Z
  ],
  driverError: Error: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 24cdff1d-af6c-4b44-8cc5-7ad7427d597f: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log f6ca6e23-9cd4-47f7-b2d4-da83ff4cc2cd: QueryFailedError: Duplicate entry '9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87',
    'Tadeu c',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:35:31.346Z
  ],
  driverError: Error: Duplicate entry '9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87', 'Tadeu c', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:35:31.346', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87', 'Tadeu c', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:35:31.346', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87',
    'Tadeu c',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:35:31.346Z
  ],
  driverError: Error: Duplicate entry '9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87', 'Tadeu c', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:35:31.346', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9ca68a6a-a5a9-461a-a143-c4fcc5fa5a87', 'Tadeu c', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:35:31.346', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9b55ad07-bcfb-4c96-b059-2d0dd52d50be: QueryFailedError: Duplicate entry '2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c',
    'Balde h',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:36:14.672Z
  ],
  driverError: Error: Duplicate entry '2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c', 'Balde h', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:36:14.672', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c', 'Balde h', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:36:14.672', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c',
    'Balde h',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:36:14.672Z
  ],
  driverError: Error: Duplicate entry '2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c', 'Balde h', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:36:14.672', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2f18fea9-ba07-49e9-bbb6-5e8644bc5f5c', 'Balde h', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:36:14.672', DEFAULT, DEFAULT)"
}
Erro ao aplicar log b6a723a5-af75-4138-af82-e2ad6c9d986e: QueryFailedError: Duplicate entry '600010b0-18e8-4b70-bbf7-408e38bb9fd7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '600010b0-18e8-4b70-bbf7-408e38bb9fd7',
    'Balde Heineken',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:36:23.115Z
  ],
  driverError: Error: Duplicate entry '600010b0-18e8-4b70-bbf7-408e38bb9fd7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '600010b0-18e8-4b70-bbf7-408e38bb9fd7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('600010b0-18e8-4b70-bbf7-408e38bb9fd7', 'Balde Heineken', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:36:23.115', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '600010b0-18e8-4b70-bbf7-408e38bb9fd7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('600010b0-18e8-4b70-bbf7-408e38bb9fd7', 'Balde Heineken', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:36:23.115', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '600010b0-18e8-4b70-bbf7-408e38bb9fd7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '600010b0-18e8-4b70-bbf7-408e38bb9fd7',
    'Balde Heineken',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:36:23.115Z
  ],
  driverError: Error: Duplicate entry '600010b0-18e8-4b70-bbf7-408e38bb9fd7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '600010b0-18e8-4b70-bbf7-408e38bb9fd7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('600010b0-18e8-4b70-bbf7-408e38bb9fd7', 'Balde Heineken', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:36:23.115', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '600010b0-18e8-4b70-bbf7-408e38bb9fd7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('600010b0-18e8-4b70-bbf7-408e38bb9fd7', 'Balde Heineken', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:36:23.115', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9dd3f145-bcf1-4c7b-a594-11f43f2840f5: QueryFailedError: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bce70742-6a15-4a0a-b020-e9c8fe7d9160',
    '83c761c4-ca10-419b-bd5a-f4341de440ff',
    'aa4642aa-a78a-429e-a61e-d3913892d5e6',
    3200,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:14:26.186Z
  ],
  driverError: Error: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bce70742-6a15-4a0a-b020-e9c8fe7d9160',
    '83c761c4-ca10-419b-bd5a-f4341de440ff',
    'aa4642aa-a78a-429e-a61e-d3913892d5e6',
    3200,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:14:26.186Z
  ],
  driverError: Error: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4f3cfd84-5ffc-4af4-b8d6-c4d2ebfbb3ed: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log da859d85-320c-478e-8f45-e62eb37c8e1a: QueryFailedError: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71bc1031-d62a-49a1-a7bf-9b0b1aea264f',
    'GADO 34 C',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:10:43.724Z
  ],
  driverError: Error: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71bc1031-d62a-49a1-a7bf-9b0b1aea264f',
    'GADO 34 C',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:10:43.724Z
  ],
  driverError: Error: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3cf8023c-77a1-487e-a54c-8d3c32938e4b: QueryFailedError: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2b696694-6204-446d-a549-8114efa71732',
    'gad',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:18:01.412Z
  ],
  driverError: Error: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2b696694-6204-446d-a549-8114efa71732',
    'gad',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:18:01.412Z
  ],
  driverError: Error: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 74f406c6-0971-42ca-8650-f95520b17be4: QueryFailedError: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b6f2f5dc-6bc4-4504-ae2c-592262f07665',
    'BALADE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:28.870Z
  ],
  driverError: Error: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b6f2f5dc-6bc4-4504-ae2c-592262f07665',
    'BALADE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:28.870Z
  ],
  driverError: Error: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 48e2bf7e-139c-4bfc-8e6b-e2c90b2f3aeb: QueryFailedError: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5188491d-60b8-43ca-9c01-7ba20b4044c6',
    'BALDE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:48.351Z
  ],
  driverError: Error: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5188491d-60b8-43ca-9c01-7ba20b4044c6',
    'BALDE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:48.351Z
  ],
  driverError: Error: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e496f6ff-d904-4cdb-ad51-7aaae75d6176: QueryFailedError: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52061bed-8464-45f0-8a8b-640d863e903e',
    'LICOR 43',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:29:39.706Z
  ],
  driverError: Error: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52061bed-8464-45f0-8a8b-640d863e903e',
    'LICOR 43',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:29:39.706Z
  ],
  driverError: Error: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1ffc1207-02ee-4cf8-930b-29c2e13e84cf: QueryFailedError: Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '56c807c3-fc43-414c-9fe1-b2330e7a389d',
    'Tacho Com Pernil Suino',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:46:25.644Z
  ],
  driverError: Error: Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('56c807c3-fc43-414c-9fe1-b2330e7a389d', 'Tacho Com Pernil Suino', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:46:25.644', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('56c807c3-fc43-414c-9fe1-b2330e7a389d', 'Tacho Com Pernil Suino', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:46:25.644', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '56c807c3-fc43-414c-9fe1-b2330e7a389d',
    'Tacho Com Pernil Suino',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T15:46:25.644Z
  ],
  driverError: Error: Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('56c807c3-fc43-414c-9fe1-b2330e7a389d', 'Tacho Com Pernil Suino', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:46:25.644', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '56c807c3-fc43-414c-9fe1-b2330e7a389d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('56c807c3-fc43-414c-9fe1-b2330e7a389d', 'Tacho Com Pernil Suino', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 15:46:25.644', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2551cdfc-248e-483e-9166-4a915caa0926: QueryFailedError: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3501f464-e4f2-4540-96ea-56dc451a1e47',
    'JOAO BATISTA DO SANTOS',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:02:02.580Z
  ],
  driverError: Error: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3501f464-e4f2-4540-96ea-56dc451a1e47',
    'JOAO BATISTA DO SANTOS',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:02:02.580Z
  ],
  driverError: Error: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
}
Erro ao aplicar log b3a24369-a205-447b-b258-49028a7ba4b7: QueryFailedError: Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ebf22047-9567-42f5-829f-20644e0e6a35',
    'BOLO OFICINA DO PAÇOCA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:25:40.100Z
  ],
  driverError: Error: Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ebf22047-9567-42f5-829f-20644e0e6a35', 'BOLO OFICINA DO PAÇOCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:25:40.100', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ebf22047-9567-42f5-829f-20644e0e6a35', 'BOLO OFICINA DO PAÇOCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:25:40.100', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ebf22047-9567-42f5-829f-20644e0e6a35',
    'BOLO OFICINA DO PAÇOCA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:25:40.100Z
  ],
  driverError: Error: Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ebf22047-9567-42f5-829f-20644e0e6a35', 'BOLO OFICINA DO PAÇOCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:25:40.100', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ebf22047-9567-42f5-829f-20644e0e6a35' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ebf22047-9567-42f5-829f-20644e0e6a35', 'BOLO OFICINA DO PAÇOCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:25:40.100', DEFAULT, DEFAULT)"
}
Erro ao aplicar log b2221bcb-31b1-4976-ac62-b4ce55597ac0: QueryFailedError: Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3f93d0f0-8ac6-4b44-b8eb-5af366045971',
    'CAIXA TERMICA COM HEINEKEN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:30:59.898Z
  ],
  driverError: Error: Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3f93d0f0-8ac6-4b44-b8eb-5af366045971', 'CAIXA TERMICA COM HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:30:59.898', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3f93d0f0-8ac6-4b44-b8eb-5af366045971', 'CAIXA TERMICA COM HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:30:59.898', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3f93d0f0-8ac6-4b44-b8eb-5af366045971',
    'CAIXA TERMICA COM HEINEKEN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:30:59.898Z
  ],
  driverError: Error: Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3f93d0f0-8ac6-4b44-b8eb-5af366045971', 'CAIXA TERMICA COM HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:30:59.898', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3f93d0f0-8ac6-4b44-b8eb-5af366045971' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3f93d0f0-8ac6-4b44-b8eb-5af366045971', 'CAIXA TERMICA COM HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:30:59.898', DEFAULT, DEFAULT)"
}
Erro ao aplicar log dc1a13f2-8987-4648-9b8d-58bc71cedced: QueryFailedError: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '82722427-5bb3-42f2-bd9b-25d5a0b03cba',
    'CARRIOLA DE LATINHAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:50:09.841Z
  ],
  driverError: Error: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '82722427-5bb3-42f2-bd9b-25d5a0b03cba',
    'CARRIOLA DE LATINHAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:50:09.841Z
  ],
  driverError: Error: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9dd3f145-bcf1-4c7b-a594-11f43f2840f5: QueryFailedError: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bce70742-6a15-4a0a-b020-e9c8fe7d9160',
    '83c761c4-ca10-419b-bd5a-f4341de440ff',
    'aa4642aa-a78a-429e-a61e-d3913892d5e6',
    3200,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:14:26.186Z
  ],
  driverError: Error: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bce70742-6a15-4a0a-b020-e9c8fe7d9160',
    '83c761c4-ca10-419b-bd5a-f4341de440ff',
    'aa4642aa-a78a-429e-a61e-d3913892d5e6',
    3200,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:14:26.186Z
  ],
  driverError: Error: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4f3cfd84-5ffc-4af4-b8d6-c4d2ebfbb3ed: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 009f96de-dfa9-40c7-aafd-21d69b0ac0ad: QueryFailedError: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '981ab5cc-bd5c-4cdb-a319-16b78f7dd600',
    'TRATOR VALTRA COOPERCITRUS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:59:34.027Z
  ],
  driverError: Error: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '981ab5cc-bd5c-4cdb-a319-16b78f7dd600',
    'TRATOR VALTRA COOPERCITRUS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:59:34.027Z
  ],
  driverError: Error: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
}
Erro ao aplicar log ac37453a-e97a-4925-8655-6ea33aa496c1: QueryFailedError: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71dc4b90-a5d2-459a-a6fe-0fae6c15623e',
    'LEITAO RAÇA TATU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:05:56.456Z
  ],
  driverError: Error: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71dc4b90-a5d2-459a-a6fe-0fae6c15623e',
    'LEITAO RAÇA TATU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:05:56.456Z
  ],
  driverError: Error: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 74f406c6-0971-42ca-8650-f95520b17be4: QueryFailedError: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b6f2f5dc-6bc4-4504-ae2c-592262f07665',
    'BALADE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:28.870Z
  ],
  driverError: Error: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b6f2f5dc-6bc4-4504-ae2c-592262f07665',
    'BALADE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:28.870Z
  ],
  driverError: Error: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 48e2bf7e-139c-4bfc-8e6b-e2c90b2f3aeb: QueryFailedError: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5188491d-60b8-43ca-9c01-7ba20b4044c6',
    'BALDE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:48.351Z
  ],
  driverError: Error: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5188491d-60b8-43ca-9c01-7ba20b4044c6',
    'BALDE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:48.351Z
  ],
  driverError: Error: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e9c2c142-4c69-409a-9e6e-de366da4aa52: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 243465f9-d2e9-445f-869c-5d16df471e66: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log df314178-766a-4f40-bc25-63d896b52969: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 9a229f77-9821-41d6-898a-561c47a136b0: QueryFailedError: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8138444c-b866-4fcb-83b4-1a1f5bc71387',
    'TRATOR STEFANI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:19.085Z
  ],
  driverError: Error: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8138444c-b866-4fcb-83b4-1a1f5bc71387',
    'TRATOR STEFANI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:19.085Z
  ],
  driverError: Error: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 971b706b-1acb-4a2f-9fa6-6a2dd6b5a4cb: QueryFailedError: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29ef15b-dc56-4928-afbd-4df1b0e93283',
    'TRATOR STEFANI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:32.021Z
  ],
  driverError: Error: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29ef15b-dc56-4928-afbd-4df1b0e93283',
    'TRATOR STEFANI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:32.021Z
  ],
  driverError: Error: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e8eae860-5890-4e83-bc99-a623823216b6: QueryFailedError: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43',
    'TRATOR',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:13:40.688Z
  ],
  driverError: Error: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43',
    'TRATOR',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:13:40.688Z
  ],
  driverError: Error: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2551cdfc-248e-483e-9166-4a915caa0926: QueryFailedError: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3501f464-e4f2-4540-96ea-56dc451a1e47',
    'JOAO BATISTA DO SANTOS',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:02:02.580Z
  ],
  driverError: Error: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3501f464-e4f2-4540-96ea-56dc451a1e47',
    'JOAO BATISTA DO SANTOS',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:02:02.580Z
  ],
  driverError: Error: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f0860646-4cfb-4ba0-bdd4-3a20de4b475f: QueryFailedError: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0ea8fc7e-fff6-4436-9970-e07f987b1b61',
    'BOLO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:40:44.554Z
  ],
  driverError: Error: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0ea8fc7e-fff6-4436-9970-e07f987b1b61',
    'BOLO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:40:44.554Z
  ],
  driverError: Error: Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0ea8fc7e-fff6-4436-9970-e07f987b1b61' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0ea8fc7e-fff6-4436-9970-e07f987b1b61', 'BOLO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:40:44.554', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 03dfe076-b54a-41b6-958e-c3b2c0a5f053: QueryFailedError: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '070eed15-b100-4d30-b653-bfd3e986ccdd',
    'CUITELO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:43:00.798Z
  ],
  driverError: Error: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '070eed15-b100-4d30-b653-bfd3e986ccdd',
    'CUITELO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:43:00.798Z
  ],
  driverError: Error: Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '070eed15-b100-4d30-b653-bfd3e986ccdd' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('070eed15-b100-4d30-b653-bfd3e986ccdd', 'CUITELO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:43:00.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 84fbeb85-4d1b-428d-89c3-7813ab64a7b6: QueryFailedError: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '198cbed7-c07d-4212-9cda-da19d5bc86c7',
    'BOLO NINHO TRUFADO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:45:27.663Z
  ],
  driverError: Error: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '198cbed7-c07d-4212-9cda-da19d5bc86c7',
    'BOLO NINHO TRUFADO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:45:27.663Z
  ],
  driverError: Error: Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '198cbed7-c07d-4212-9cda-da19d5bc86c7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('198cbed7-c07d-4212-9cda-da19d5bc86c7', 'BOLO NINHO TRUFADO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:45:27.663', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 24b419c7-1703-4bb6-9640-bce0fd7ce556: QueryFailedError: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '368064ae-ed6a-41a6-b7bf-76d0963b3951',
    '87dbab08-c83b-4b30-910f-274f6cf6a4ad',
    '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0',
    2350,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:59:15.379Z
  ],
  driverError: Error: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '368064ae-ed6a-41a6-b7bf-76d0963b3951',
    '87dbab08-c83b-4b30-910f-274f6cf6a4ad',
    '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0',
    2350,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T16:59:15.379Z
  ],
  driverError: Error: Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '368064ae-ed6a-41a6-b7bf-76d0963b3951' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('368064ae-ed6a-41a6-b7bf-76d0963b3951', '87dbab08-c83b-4b30-910f-274f6cf6a4ad', '9b0fa26a-588e-4d8f-8f8a-ea1eafe733b0', 2350, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 16:59:15.379', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 24cdff1d-af6c-4b44-8cc5-7ad7427d597f: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 009f96de-dfa9-40c7-aafd-21d69b0ac0ad: QueryFailedError: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '981ab5cc-bd5c-4cdb-a319-16b78f7dd600',
    'TRATOR VALTRA COOPERCITRUS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:59:34.027Z
  ],
  driverError: Error: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '981ab5cc-bd5c-4cdb-a319-16b78f7dd600',
    'TRATOR VALTRA COOPERCITRUS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:59:34.027Z
  ],
  driverError: Error: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
}
Erro ao aplicar log ac37453a-e97a-4925-8655-6ea33aa496c1: QueryFailedError: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71dc4b90-a5d2-459a-a6fe-0fae6c15623e',
    'LEITAO RAÇA TATU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:05:56.456Z
  ],
  driverError: Error: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71dc4b90-a5d2-459a-a6fe-0fae6c15623e',
    'LEITAO RAÇA TATU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:05:56.456Z
  ],
  driverError: Error: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
}
Erro ao aplicar log da859d85-320c-478e-8f45-e62eb37c8e1a: QueryFailedError: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71bc1031-d62a-49a1-a7bf-9b0b1aea264f',
    'GADO 34 C',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:10:43.724Z
  ],
  driverError: Error: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71bc1031-d62a-49a1-a7bf-9b0b1aea264f',
    'GADO 34 C',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:10:43.724Z
  ],
  driverError: Error: Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71bc1031-d62a-49a1-a7bf-9b0b1aea264f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71bc1031-d62a-49a1-a7bf-9b0b1aea264f', 'GADO 34 C', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:10:43.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3cf8023c-77a1-487e-a54c-8d3c32938e4b: QueryFailedError: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2b696694-6204-446d-a549-8114efa71732',
    'gad',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:18:01.412Z
  ],
  driverError: Error: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2b696694-6204-446d-a549-8114efa71732',
    'gad',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:18:01.412Z
  ],
  driverError: Error: Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2b696694-6204-446d-a549-8114efa71732' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2b696694-6204-446d-a549-8114efa71732', 'gad', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:18:01.412', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9a229f77-9821-41d6-898a-561c47a136b0: QueryFailedError: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8138444c-b866-4fcb-83b4-1a1f5bc71387',
    'TRATOR STEFANI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:19.085Z
  ],
  driverError: Error: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8138444c-b866-4fcb-83b4-1a1f5bc71387',
    'TRATOR STEFANI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:19.085Z
  ],
  driverError: Error: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 971b706b-1acb-4a2f-9fa6-6a2dd6b5a4cb: QueryFailedError: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29ef15b-dc56-4928-afbd-4df1b0e93283',
    'TRATOR STEFANI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:32.021Z
  ],
  driverError: Error: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29ef15b-dc56-4928-afbd-4df1b0e93283',
    'TRATOR STEFANI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:32.021Z
  ],
  driverError: Error: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e8eae860-5890-4e83-bc99-a623823216b6: QueryFailedError: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43',
    'TRATOR',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:13:40.688Z
  ],
  driverError: Error: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43',
    'TRATOR',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:13:40.688Z
  ],
  driverError: Error: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e496f6ff-d904-4cdb-ad51-7aaae75d6176: QueryFailedError: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52061bed-8464-45f0-8a8b-640d863e903e',
    'LICOR 43',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:29:39.706Z
  ],
  driverError: Error: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52061bed-8464-45f0-8a8b-640d863e903e',
    'LICOR 43',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:29:39.706Z
  ],
  driverError: Error: Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52061bed-8464-45f0-8a8b-640d863e903e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52061bed-8464-45f0-8a8b-640d863e903e', 'LICOR 43', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:29:39.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar log efe1a410-5d80-4ecc-b25e-ccbe9c997fbe: QueryFailedError: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b3fa3932-0970-4e28-8ba6-e59aae7b9025',
    'CARNEIRO H',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:33:05.528Z
  ],
  driverError: Error: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b3fa3932-0970-4e28-8ba6-e59aae7b9025',
    'CARNEIRO H',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:33:05.528Z
  ],
  driverError: Error: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 77082fb7-6b32-402f-85b1-4af1f99b1ec9: QueryFailedError: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5ec587a6-0a47-433d-b9b6-04dcc86b160d',
    'CESTA DE LIMPEZA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:43:37.368Z
  ],
  driverError: Error: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5ec587a6-0a47-433d-b9b6-04dcc86b160d',
    'CESTA DE LIMPEZA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:43:37.368Z
  ],
  driverError: Error: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
}
Erro ao aplicar log b47ae37c-9304-43ad-a234-6e7654865fcb: QueryFailedError: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54343a52-b58d-40a2-bb5c-653b96432ab3',
    'PINGA TADEU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:46:47.977Z
  ],
  driverError: Error: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54343a52-b58d-40a2-bb5c-653b96432ab3',
    'PINGA TADEU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:46:47.977Z
  ],
  driverError: Error: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 01b60bcf-0ac8-46e9-a651-3d38ff8390f3: QueryFailedError: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '00fdb7d1-6758-4f5a-a317-097b96faa405',
    'CESTA TURVO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:56:10.102Z
  ],
  driverError: Error: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '00fdb7d1-6758-4f5a-a317-097b96faa405',
    'CESTA TURVO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:56:10.102Z
  ],
  driverError: Error: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 85cee1b9-0e95-4801-8ee7-d81fea7a180c: QueryFailedError: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ffafba17-5e25-4d62-b413-ddc8e1a429f1',
    'BOLA FUTEBOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:58:27.852Z
  ],
  driverError: Error: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ffafba17-5e25-4d62-b413-ddc8e1a429f1',
    'BOLA FUTEBOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:58:27.852Z
  ],
  driverError: Error: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3d7454e7-7d0d-4b33-a0f0-d721e6473db6: QueryFailedError: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6cf1dff7-db1b-48e7-baea-a881b2f6747f',
    'BATERIA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:03:16.764Z
  ],
  driverError: Error: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6cf1dff7-db1b-48e7-baea-a881b2f6747f',
    'BATERIA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:03:16.764Z
  ],
  driverError: Error: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f84591fc-67d4-4563-a973-b6a1a7d79eb0: QueryFailedError: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'da3138de-fc66-4e28-bdfa-545164536a70',
    'PIJAMA FEMININO',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:05:38.722Z
  ],
  driverError: Error: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'da3138de-fc66-4e28-bdfa-545164536a70',
    'PIJAMA FEMININO',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:05:38.722Z
  ],
  driverError: Error: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f830cbdb-b2b0-48d4-8a42-f0235cb0e5a3: QueryFailedError: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd515d33c-b17e-4571-a65a-8c6559c6822e',
    'CAMISA MODA ',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:07:41.768Z
  ],
  driverError: Error: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd515d33c-b17e-4571-a65a-8c6559c6822e',
    'CAMISA MODA ',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:07:41.768Z
  ],
  driverError: Error: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 81ad77fe-854f-474b-993e-8e1d32157fd3: QueryFailedError: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7cf9609f-eee3-45a3-bbab-99c7cc908060',
    'CADEIRA AREA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:08:57.910Z
  ],
  driverError: Error: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7cf9609f-eee3-45a3-bbab-99c7cc908060',
    'CADEIRA AREA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:08:57.910Z
  ],
  driverError: Error: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
}
Erro ao aplicar log dc1a13f2-8987-4648-9b8d-58bc71cedced: QueryFailedError: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '82722427-5bb3-42f2-bd9b-25d5a0b03cba',
    'CARRIOLA DE LATINHAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:50:09.841Z
  ],
  driverError: Error: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '82722427-5bb3-42f2-bd9b-25d5a0b03cba',
    'CARRIOLA DE LATINHAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T17:50:09.841Z
  ],
  driverError: Error: Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '82722427-5bb3-42f2-bd9b-25d5a0b03cba' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('82722427-5bb3-42f2-bd9b-25d5a0b03cba', 'CARRIOLA DE LATINHAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 17:50:09.841', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1fc4f74c-ef77-49ca-b0d3-0e50a61ef538: QueryFailedError: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53175856-7f03-4d81-9a76-ee0959aa2c24',
    'RACK MADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:12:59.202Z
  ],
  driverError: Error: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53175856-7f03-4d81-9a76-ee0959aa2c24',
    'RACK MADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:12:59.202Z
  ],
  driverError: Error: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9311afdc-4ad5-4090-b4bc-dbcb4b456b06: QueryFailedError: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5479fd6c-c871-43bb-9bc9-6d416a2635a6',
    'PARAFUSADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:16:15.502Z
  ],
  driverError: Error: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5479fd6c-c871-43bb-9bc9-6d416a2635a6',
    'PARAFUSADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:16:15.502Z
  ],
  driverError: Error: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9dd3f145-bcf1-4c7b-a594-11f43f2840f5: QueryFailedError: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bce70742-6a15-4a0a-b020-e9c8fe7d9160',
    '83c761c4-ca10-419b-bd5a-f4341de440ff',
    'aa4642aa-a78a-429e-a61e-d3913892d5e6',
    3200,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:14:26.186Z
  ],
  driverError: Error: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bce70742-6a15-4a0a-b020-e9c8fe7d9160',
    '83c761c4-ca10-419b-bd5a-f4341de440ff',
    'aa4642aa-a78a-429e-a61e-d3913892d5e6',
    3200,
    0,
    0,
    2026-02-02T00:00:00.000Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:14:26.186Z
  ],
  driverError: Error: Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bce70742-6a15-4a0a-b020-e9c8fe7d9160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bce70742-6a15-4a0a-b020-e9c8fe7d9160', '83c761c4-ca10-419b-bd5a-f4341de440ff', 'aa4642aa-a78a-429e-a61e-d3913892d5e6', 3200, 0, 0, DEFAULT, '2026-02-02 00:00:00.000', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:14:26.186', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4f3cfd84-5ffc-4af4-b8d6-c4d2ebfbb3ed: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 74f406c6-0971-42ca-8650-f95520b17be4: QueryFailedError: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b6f2f5dc-6bc4-4504-ae2c-592262f07665',
    'BALADE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:28.870Z
  ],
  driverError: Error: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b6f2f5dc-6bc4-4504-ae2c-592262f07665',
    'BALADE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:28.870Z
  ],
  driverError: Error: Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b6f2f5dc-6bc4-4504-ae2c-592262f07665' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b6f2f5dc-6bc4-4504-ae2c-592262f07665', 'BALADE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:28.870', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 48e2bf7e-139c-4bfc-8e6b-e2c90b2f3aeb: QueryFailedError: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5188491d-60b8-43ca-9c01-7ba20b4044c6',
    'BALDE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:48.351Z
  ],
  driverError: Error: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5188491d-60b8-43ca-9c01-7ba20b4044c6',
    'BALDE CAMPARI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T18:43:48.351Z
  ],
  driverError: Error: Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5188491d-60b8-43ca-9c01-7ba20b4044c6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5188491d-60b8-43ca-9c01-7ba20b4044c6', 'BALDE CAMPARI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 18:43:48.351', DEFAULT, DEFAULT)"
}
Erro ao aplicar log efe1a410-5d80-4ecc-b25e-ccbe9c997fbe: QueryFailedError: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b3fa3932-0970-4e28-8ba6-e59aae7b9025',
    'CARNEIRO H',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:33:05.528Z
  ],
  driverError: Error: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b3fa3932-0970-4e28-8ba6-e59aae7b9025',
    'CARNEIRO H',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:33:05.528Z
  ],
  driverError: Error: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 77082fb7-6b32-402f-85b1-4af1f99b1ec9: QueryFailedError: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5ec587a6-0a47-433d-b9b6-04dcc86b160d',
    'CESTA DE LIMPEZA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:43:37.368Z
  ],
  driverError: Error: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5ec587a6-0a47-433d-b9b6-04dcc86b160d',
    'CESTA DE LIMPEZA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:43:37.368Z
  ],
  driverError: Error: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
}
Erro ao aplicar log b47ae37c-9304-43ad-a234-6e7654865fcb: QueryFailedError: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54343a52-b58d-40a2-bb5c-653b96432ab3',
    'PINGA TADEU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:46:47.977Z
  ],
  driverError: Error: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54343a52-b58d-40a2-bb5c-653b96432ab3',
    'PINGA TADEU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:46:47.977Z
  ],
  driverError: Error: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2551cdfc-248e-483e-9166-4a915caa0926: QueryFailedError: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3501f464-e4f2-4540-96ea-56dc451a1e47',
    'JOAO BATISTA DO SANTOS',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:02:02.580Z
  ],
  driverError: Error: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3501f464-e4f2-4540-96ea-56dc451a1e47',
    'JOAO BATISTA DO SANTOS',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:02:02.580Z
  ],
  driverError: Error: Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3501f464-e4f2-4540-96ea-56dc451a1e47' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3501f464-e4f2-4540-96ea-56dc451a1e47', 'JOAO BATISTA DO SANTOS', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:02:02.580', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 01b60bcf-0ac8-46e9-a651-3d38ff8390f3: QueryFailedError: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '00fdb7d1-6758-4f5a-a317-097b96faa405',
    'CESTA TURVO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:56:10.102Z
  ],
  driverError: Error: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '00fdb7d1-6758-4f5a-a317-097b96faa405',
    'CESTA TURVO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:56:10.102Z
  ],
  driverError: Error: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 85cee1b9-0e95-4801-8ee7-d81fea7a180c: QueryFailedError: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ffafba17-5e25-4d62-b413-ddc8e1a429f1',
    'BOLA FUTEBOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:58:27.852Z
  ],
  driverError: Error: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ffafba17-5e25-4d62-b413-ddc8e1a429f1',
    'BOLA FUTEBOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:58:27.852Z
  ],
  driverError: Error: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3d7454e7-7d0d-4b33-a0f0-d721e6473db6: QueryFailedError: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6cf1dff7-db1b-48e7-baea-a881b2f6747f',
    'BATERIA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:03:16.764Z
  ],
  driverError: Error: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6cf1dff7-db1b-48e7-baea-a881b2f6747f',
    'BATERIA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:03:16.764Z
  ],
  driverError: Error: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f84591fc-67d4-4563-a973-b6a1a7d79eb0: QueryFailedError: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'da3138de-fc66-4e28-bdfa-545164536a70',
    'PIJAMA FEMININO',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:05:38.722Z
  ],
  driverError: Error: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'da3138de-fc66-4e28-bdfa-545164536a70',
    'PIJAMA FEMININO',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:05:38.722Z
  ],
  driverError: Error: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f830cbdb-b2b0-48d4-8a42-f0235cb0e5a3: QueryFailedError: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd515d33c-b17e-4571-a65a-8c6559c6822e',
    'CAMISA MODA ',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:07:41.768Z
  ],
  driverError: Error: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd515d33c-b17e-4571-a65a-8c6559c6822e',
    'CAMISA MODA ',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:07:41.768Z
  ],
  driverError: Error: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 81ad77fe-854f-474b-993e-8e1d32157fd3: QueryFailedError: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7cf9609f-eee3-45a3-bbab-99c7cc908060',
    'CADEIRA AREA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:08:57.910Z
  ],
  driverError: Error: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7cf9609f-eee3-45a3-bbab-99c7cc908060',
    'CADEIRA AREA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:08:57.910Z
  ],
  driverError: Error: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1fc4f74c-ef77-49ca-b0d3-0e50a61ef538: QueryFailedError: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53175856-7f03-4d81-9a76-ee0959aa2c24',
    'RACK MADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:12:59.202Z
  ],
  driverError: Error: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53175856-7f03-4d81-9a76-ee0959aa2c24',
    'RACK MADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:12:59.202Z
  ],
  driverError: Error: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9311afdc-4ad5-4090-b4bc-dbcb4b456b06: QueryFailedError: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5479fd6c-c871-43bb-9bc9-6d416a2635a6',
    'PARAFUSADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:16:15.502Z
  ],
  driverError: Error: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5479fd6c-c871-43bb-9bc9-6d416a2635a6',
    'PARAFUSADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:16:15.502Z
  ],
  driverError: Error: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 009f96de-dfa9-40c7-aafd-21d69b0ac0ad: QueryFailedError: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '981ab5cc-bd5c-4cdb-a319-16b78f7dd600',
    'TRATOR VALTRA COOPERCITRUS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:59:34.027Z
  ],
  driverError: Error: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '981ab5cc-bd5c-4cdb-a319-16b78f7dd600',
    'TRATOR VALTRA COOPERCITRUS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T19:59:34.027Z
  ],
  driverError: Error: Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '981ab5cc-bd5c-4cdb-a319-16b78f7dd600' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('981ab5cc-bd5c-4cdb-a319-16b78f7dd600', 'TRATOR VALTRA COOPERCITRUS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 19:59:34.027', DEFAULT, DEFAULT)"
}
Erro ao aplicar log ac37453a-e97a-4925-8655-6ea33aa496c1: QueryFailedError: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71dc4b90-a5d2-459a-a6fe-0fae6c15623e',
    'LEITAO RAÇA TATU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:05:56.456Z
  ],
  driverError: Error: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '71dc4b90-a5d2-459a-a6fe-0fae6c15623e',
    'LEITAO RAÇA TATU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:05:56.456Z
  ],
  driverError: Error: Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '71dc4b90-a5d2-459a-a6fe-0fae6c15623e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('71dc4b90-a5d2-459a-a6fe-0fae6c15623e', 'LEITAO RAÇA TATU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:05:56.456', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9a229f77-9821-41d6-898a-561c47a136b0: QueryFailedError: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8138444c-b866-4fcb-83b4-1a1f5bc71387',
    'TRATOR STEFANI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:19.085Z
  ],
  driverError: Error: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8138444c-b866-4fcb-83b4-1a1f5bc71387',
    'TRATOR STEFANI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:19.085Z
  ],
  driverError: Error: Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8138444c-b866-4fcb-83b4-1a1f5bc71387' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8138444c-b866-4fcb-83b4-1a1f5bc71387', 'TRATOR STEFANI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:19.085', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 971b706b-1acb-4a2f-9fa6-6a2dd6b5a4cb: QueryFailedError: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29ef15b-dc56-4928-afbd-4df1b0e93283',
    'TRATOR STEFANI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:32.021Z
  ],
  driverError: Error: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29ef15b-dc56-4928-afbd-4df1b0e93283',
    'TRATOR STEFANI',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:12:32.021Z
  ],
  driverError: Error: Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29ef15b-dc56-4928-afbd-4df1b0e93283' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29ef15b-dc56-4928-afbd-4df1b0e93283', 'TRATOR STEFANI', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:12:32.021', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e8eae860-5890-4e83-bc99-a623823216b6: QueryFailedError: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43',
    'TRATOR',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:13:40.688Z
  ],
  driverError: Error: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43',
    'TRATOR',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:13:40.688Z
  ],
  driverError: Error: Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8bcfd92c-1dda-46ac-b2f2-35743ba8fe43' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8bcfd92c-1dda-46ac-b2f2-35743ba8fe43', 'TRATOR', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:13:40.688', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4c952f36-0708-46ad-a736-058369071639: QueryFailedError: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1440ea5f-08d3-49fe-8e06-1692d75f50aa',
    '35be08c2-72d8-48b3-a85f-011164052a38',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-06T19:33:07.164Z
  ],
  driverError: Error: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
    sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
  sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1440ea5f-08d3-49fe-8e06-1692d75f50aa',
    '35be08c2-72d8-48b3-a85f-011164052a38',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-06T19:33:07.164Z
  ],
  driverError: Error: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
    sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
  sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
}
Erro ao aplicar log efe1a410-5d80-4ecc-b25e-ccbe9c997fbe: QueryFailedError: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b3fa3932-0970-4e28-8ba6-e59aae7b9025',
    'CARNEIRO H',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:33:05.528Z
  ],
  driverError: Error: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b3fa3932-0970-4e28-8ba6-e59aae7b9025',
    'CARNEIRO H',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:33:05.528Z
  ],
  driverError: Error: Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b3fa3932-0970-4e28-8ba6-e59aae7b9025' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b3fa3932-0970-4e28-8ba6-e59aae7b9025', 'CARNEIRO H', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:33:05.528', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 77082fb7-6b32-402f-85b1-4af1f99b1ec9: QueryFailedError: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5ec587a6-0a47-433d-b9b6-04dcc86b160d',
    'CESTA DE LIMPEZA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:43:37.368Z
  ],
  driverError: Error: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5ec587a6-0a47-433d-b9b6-04dcc86b160d',
    'CESTA DE LIMPEZA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:43:37.368Z
  ],
  driverError: Error: Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5ec587a6-0a47-433d-b9b6-04dcc86b160d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5ec587a6-0a47-433d-b9b6-04dcc86b160d', 'CESTA DE LIMPEZA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:43:37.368', DEFAULT, DEFAULT)"
}
Erro ao aplicar log b47ae37c-9304-43ad-a234-6e7654865fcb: QueryFailedError: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54343a52-b58d-40a2-bb5c-653b96432ab3',
    'PINGA TADEU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:46:47.977Z
  ],
  driverError: Error: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54343a52-b58d-40a2-bb5c-653b96432ab3',
    'PINGA TADEU',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:46:47.977Z
  ],
  driverError: Error: Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54343a52-b58d-40a2-bb5c-653b96432ab3' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54343a52-b58d-40a2-bb5c-653b96432ab3', 'PINGA TADEU', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:46:47.977', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4c952f36-0708-46ad-a736-058369071639: QueryFailedError: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1440ea5f-08d3-49fe-8e06-1692d75f50aa',
    '35be08c2-72d8-48b3-a85f-011164052a38',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-06T19:33:07.164Z
  ],
  driverError: Error: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
    sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
  sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1440ea5f-08d3-49fe-8e06-1692d75f50aa',
    '35be08c2-72d8-48b3-a85f-011164052a38',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-06T19:33:07.164Z
  ],
  driverError: Error: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
    sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
  sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 01b60bcf-0ac8-46e9-a651-3d38ff8390f3: QueryFailedError: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '00fdb7d1-6758-4f5a-a317-097b96faa405',
    'CESTA TURVO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:56:10.102Z
  ],
  driverError: Error: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '00fdb7d1-6758-4f5a-a317-097b96faa405',
    'CESTA TURVO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:56:10.102Z
  ],
  driverError: Error: Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '00fdb7d1-6758-4f5a-a317-097b96faa405' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('00fdb7d1-6758-4f5a-a317-097b96faa405', 'CESTA TURVO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:56:10.102', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 85cee1b9-0e95-4801-8ee7-d81fea7a180c: QueryFailedError: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ffafba17-5e25-4d62-b413-ddc8e1a429f1',
    'BOLA FUTEBOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:58:27.852Z
  ],
  driverError: Error: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ffafba17-5e25-4d62-b413-ddc8e1a429f1',
    'BOLA FUTEBOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T20:58:27.852Z
  ],
  driverError: Error: Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ffafba17-5e25-4d62-b413-ddc8e1a429f1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ffafba17-5e25-4d62-b413-ddc8e1a429f1', 'BOLA FUTEBOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 20:58:27.852', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3d7454e7-7d0d-4b33-a0f0-d721e6473db6: QueryFailedError: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6cf1dff7-db1b-48e7-baea-a881b2f6747f',
    'BATERIA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:03:16.764Z
  ],
  driverError: Error: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6cf1dff7-db1b-48e7-baea-a881b2f6747f',
    'BATERIA',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:03:16.764Z
  ],
  driverError: Error: Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6cf1dff7-db1b-48e7-baea-a881b2f6747f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6cf1dff7-db1b-48e7-baea-a881b2f6747f', 'BATERIA', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:03:16.764', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f84591fc-67d4-4563-a973-b6a1a7d79eb0: QueryFailedError: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'da3138de-fc66-4e28-bdfa-545164536a70',
    'PIJAMA FEMININO',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:05:38.722Z
  ],
  driverError: Error: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'da3138de-fc66-4e28-bdfa-545164536a70',
    'PIJAMA FEMININO',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:05:38.722Z
  ],
  driverError: Error: Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'da3138de-fc66-4e28-bdfa-545164536a70' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('da3138de-fc66-4e28-bdfa-545164536a70', 'PIJAMA FEMININO', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:05:38.722', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f830cbdb-b2b0-48d4-8a42-f0235cb0e5a3: QueryFailedError: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd515d33c-b17e-4571-a65a-8c6559c6822e',
    'CAMISA MODA ',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:07:41.768Z
  ],
  driverError: Error: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd515d33c-b17e-4571-a65a-8c6559c6822e',
    'CAMISA MODA ',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:07:41.768Z
  ],
  driverError: Error: Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd515d33c-b17e-4571-a65a-8c6559c6822e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d515d33c-b17e-4571-a65a-8c6559c6822e', 'CAMISA MODA ', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:07:41.768', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 81ad77fe-854f-474b-993e-8e1d32157fd3: QueryFailedError: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7cf9609f-eee3-45a3-bbab-99c7cc908060',
    'CADEIRA AREA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:08:57.910Z
  ],
  driverError: Error: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7cf9609f-eee3-45a3-bbab-99c7cc908060',
    'CADEIRA AREA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:08:57.910Z
  ],
  driverError: Error: Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7cf9609f-eee3-45a3-bbab-99c7cc908060' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7cf9609f-eee3-45a3-bbab-99c7cc908060', 'CADEIRA AREA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:08:57.910', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1fc4f74c-ef77-49ca-b0d3-0e50a61ef538: QueryFailedError: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53175856-7f03-4d81-9a76-ee0959aa2c24',
    'RACK MADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:12:59.202Z
  ],
  driverError: Error: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53175856-7f03-4d81-9a76-ee0959aa2c24',
    'RACK MADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:12:59.202Z
  ],
  driverError: Error: Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53175856-7f03-4d81-9a76-ee0959aa2c24' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53175856-7f03-4d81-9a76-ee0959aa2c24', 'RACK MADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:12:59.202', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9311afdc-4ad5-4090-b4bc-dbcb4b456b06: QueryFailedError: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5479fd6c-c871-43bb-9bc9-6d416a2635a6',
    'PARAFUSADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:16:15.502Z
  ],
  driverError: Error: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5479fd6c-c871-43bb-9bc9-6d416a2635a6',
    'PARAFUSADEIRA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-05T21:16:15.502Z
  ],
  driverError: Error: Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5479fd6c-c871-43bb-9bc9-6d416a2635a6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5479fd6c-c871-43bb-9bc9-6d416a2635a6', 'PARAFUSADEIRA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-05 21:16:15.502', DEFAULT, DEFAULT)"
}
Erro ao aplicar log c0950c37-c3ea-484a-a84b-32f658438a87: QueryFailedError: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a89b6254-47f3-4fa5-9961-8cb7da0d78e1',
    'PIMENTA DO REINO 1 KG CLEIDE PAGIN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:36.241Z
  ],
  driverError: Error: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a89b6254-47f3-4fa5-9961-8cb7da0d78e1',
    'PIMENTA DO REINO 1 KG CLEIDE PAGIN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:36.241Z
  ],
  driverError: Error: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
}
Erro ao aplicar log d8ef2e9a-732b-44c2-907a-9d2d9e7e8bb7: QueryFailedError: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '580ce189-0eed-4773-9f3b-71c020c9e986',
    'TACHO DE ARADO BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:58.402Z
  ],
  driverError: Error: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '580ce189-0eed-4773-9f3b-71c020c9e986',
    'TACHO DE ARADO BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:58.402Z
  ],
  driverError: Error: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 04bb8d2c-baef-4613-9363-93b6b22e8c3d: QueryFailedError: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7',
    'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:19:23.916Z
  ],
  driverError: Error: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7',
    'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:19:23.916Z
  ],
  driverError: Error: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
}
Erro ao aplicar log de84c4f9-73af-4f98-8fbe-baf797ac3bd7: QueryFailedError: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e680c917-7d29-4261-9b97-d5f71be9f822',
    'KIT JOIAS GISELE CIMOAGRO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:03.557Z
  ],
  driverError: Error: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e680c917-7d29-4261-9b97-d5f71be9f822',
    'KIT JOIAS GISELE CIMOAGRO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:03.557Z
  ],
  driverError: Error: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2274ffb3-a3df-4254-9109-03492fcd3287: QueryFailedError: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0482c347-886d-4621-b319-6fd04775a88d',
    'MESA INFANTIL JOAO BRASIL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:19.724Z
  ],
  driverError: Error: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0482c347-886d-4621-b319-6fd04775a88d',
    'MESA INFANTIL JOAO BRASIL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:19.724Z
  ],
  driverError: Error: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7e2b1580-1c79-4702-a6dd-65975bcbd3eb: QueryFailedError: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f01e8cd9-e7be-41ce-8403-912d98ddd3fe',
    'FESTATESTE',
    'NA',
    'ITAPOLIS',
    2025-10-11T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    'COMISSAO',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:27:49.267Z
  ],
  driverError: Error: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f01e8cd9-e7be-41ce-8403-912d98ddd3fe',
    'FESTATESTE',
    'NA',
    'ITAPOLIS',
    2025-10-11T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    'COMISSAO',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:27:49.267Z
  ],
  driverError: Error: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 8102664e-9514-4012-b5e0-afffcfebcacb: QueryFailedError: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dd98ff21-dde5-415c-bade-47f374cd8ea2',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:38.052Z
  ],
  driverError: Error: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dd98ff21-dde5-415c-bade-47f374cd8ea2',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:38.052Z
  ],
  driverError: Error: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3a784003-0002-4fd9-b654-e3c272a4ee1b: QueryFailedError: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:00.215Z
  ],
  driverError: Error: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:00.215Z
  ],
  driverError: Error: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 975fec52-0a6f-498f-b451-3c7980a22cc6: QueryFailedError: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '79d749f8-221c-4650-92f2-1f301c92ae38',
    'ORQUIDEA AMARELA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:00.774Z
  ],
  driverError: Error: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '79d749f8-221c-4650-92f2-1f301c92ae38',
    'ORQUIDEA AMARELA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:00.774Z
  ],
  driverError: Error: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2c9c57ca-5742-478a-9262-12a7fdd60948: QueryFailedError: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54b3ede0-8c14-416e-9e7e-cc04953f4990',
    'ORQUIDEA BRANCA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:10.964Z
  ],
  driverError: Error: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54b3ede0-8c14-416e-9e7e-cc04953f4990',
    'ORQUIDEA BRANCA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:10.964Z
  ],
  driverError: Error: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 41f2f063-00c9-4c92-9ec6-a07ea1288c71: QueryFailedError: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b386bb35-7355-4fe1-a931-be5bc280559a',
    'CAIXA DE SOM ´PORTATIL PALACIO DO SOM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:35.437Z
  ],
  driverError: Error: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b386bb35-7355-4fe1-a931-be5bc280559a',
    'CAIXA DE SOM ´PORTATIL PALACIO DO SOM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:35.437Z
  ],
  driverError: Error: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
}
Erro ao aplicar log d872fccc-0d22-4140-8174-2eab87339d11: QueryFailedError: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6',
    'KIT LIMPEZA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:52.088Z
  ],
  driverError: Error: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6',
    'KIT LIMPEZA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:52.088Z
  ],
  driverError: Error: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 8c10da87-6842-491a-9ba5-51576b14f95e: QueryFailedError: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ce4920a5-d028-4619-b499-e5a7c16d5f0f',
    'PIJAMA VICTOR PIJAMAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:23:26.112Z
  ],
  driverError: Error: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ce4920a5-d028-4619-b499-e5a7c16d5f0f',
    'PIJAMA VICTOR PIJAMAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:23:26.112Z
  ],
  driverError: Error: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1a725176-ff7f-49d3-8e5d-af43dfdeafb9: QueryFailedError: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a137be50-9ac9-477d-87ef-1ca3d043fa9b',
    'CESTINHA DE DOCES DA DAMARIS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:35:21.220Z
  ],
  driverError: Error: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a137be50-9ac9-477d-87ef-1ca3d043fa9b',
    'CESTINHA DE DOCES DA DAMARIS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:35:21.220Z
  ],
  driverError: Error: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4c952f36-0708-46ad-a736-058369071639: QueryFailedError: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1440ea5f-08d3-49fe-8e06-1692d75f50aa',
    '35be08c2-72d8-48b3-a85f-011164052a38',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-06T19:33:07.164Z
  ],
  driverError: Error: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
    sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
  sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1440ea5f-08d3-49fe-8e06-1692d75f50aa',
    '35be08c2-72d8-48b3-a85f-011164052a38',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-06T19:33:07.164Z
  ],
  driverError: Error: Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
    sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1440ea5f-08d3-49fe-8e06-1692d75f50aa' for key 'PRIMARY'",
  sql: "INSERT INTO `festas_caixa`(`id`, `festaId`, `valorAbertura`, `fechamento`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1440ea5f-08d3-49fe-8e06-1692d75f50aa', '35be08c2-72d8-48b3-a85f-011164052a38', 0, DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-06 19:33:07.164', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 23f54fe2-196c-46ae-8c88-f61c0b3d1f53: QueryFailedError: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac',
    'WISKY BALANTINES',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:20:37.706Z
  ],
  driverError: Error: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac',
    'WISKY BALANTINES',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:20:37.706Z
  ],
  driverError: Error: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 86b70436-f9a2-47a5-95f8-27f89e3fa358: QueryFailedError: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'acc27243-561a-4fe4-9b33-18bc27772673',
    '59a7c7c8-6be0-4148-9e6b-6747c4d10216',
    'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83',
    450,
    0,
    0,
    2025-10-12T00:48:59.122Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:48:59.122Z
  ],
  driverError: Error: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'acc27243-561a-4fe4-9b33-18bc27772673',
    '59a7c7c8-6be0-4148-9e6b-6747c4d10216',
    'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83',
    450,
    0,
    0,
    2025-10-12T00:48:59.122Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:48:59.122Z
  ],
  driverError: Error: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 5e192a81-1666-439b-b9cd-59f9b632f7eb: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log c0950c37-c3ea-484a-a84b-32f658438a87: QueryFailedError: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a89b6254-47f3-4fa5-9961-8cb7da0d78e1',
    'PIMENTA DO REINO 1 KG CLEIDE PAGIN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:36.241Z
  ],
  driverError: Error: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a89b6254-47f3-4fa5-9961-8cb7da0d78e1',
    'PIMENTA DO REINO 1 KG CLEIDE PAGIN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:36.241Z
  ],
  driverError: Error: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
}
Erro ao aplicar log d8ef2e9a-732b-44c2-907a-9d2d9e7e8bb7: QueryFailedError: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '580ce189-0eed-4773-9f3b-71c020c9e986',
    'TACHO DE ARADO BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:58.402Z
  ],
  driverError: Error: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '580ce189-0eed-4773-9f3b-71c020c9e986',
    'TACHO DE ARADO BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:58.402Z
  ],
  driverError: Error: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 04bb8d2c-baef-4613-9363-93b6b22e8c3d: QueryFailedError: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7',
    'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:19:23.916Z
  ],
  driverError: Error: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7',
    'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:19:23.916Z
  ],
  driverError: Error: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
}
Erro ao aplicar log de84c4f9-73af-4f98-8fbe-baf797ac3bd7: QueryFailedError: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e680c917-7d29-4261-9b97-d5f71be9f822',
    'KIT JOIAS GISELE CIMOAGRO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:03.557Z
  ],
  driverError: Error: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e680c917-7d29-4261-9b97-d5f71be9f822',
    'KIT JOIAS GISELE CIMOAGRO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:03.557Z
  ],
  driverError: Error: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2274ffb3-a3df-4254-9109-03492fcd3287: QueryFailedError: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0482c347-886d-4621-b319-6fd04775a88d',
    'MESA INFANTIL JOAO BRASIL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:19.724Z
  ],
  driverError: Error: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0482c347-886d-4621-b319-6fd04775a88d',
    'MESA INFANTIL JOAO BRASIL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:19.724Z
  ],
  driverError: Error: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7e2b1580-1c79-4702-a6dd-65975bcbd3eb: QueryFailedError: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f01e8cd9-e7be-41ce-8403-912d98ddd3fe',
    'FESTATESTE',
    'NA',
    'ITAPOLIS',
    2025-10-11T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    'COMISSAO',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:27:49.267Z
  ],
  driverError: Error: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f01e8cd9-e7be-41ce-8403-912d98ddd3fe',
    'FESTATESTE',
    'NA',
    'ITAPOLIS',
    2025-10-11T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    'COMISSAO',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:27:49.267Z
  ],
  driverError: Error: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 8102664e-9514-4012-b5e0-afffcfebcacb: QueryFailedError: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dd98ff21-dde5-415c-bade-47f374cd8ea2',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:38.052Z
  ],
  driverError: Error: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dd98ff21-dde5-415c-bade-47f374cd8ea2',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:38.052Z
  ],
  driverError: Error: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3a784003-0002-4fd9-b654-e3c272a4ee1b: QueryFailedError: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:00.215Z
  ],
  driverError: Error: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:00.215Z
  ],
  driverError: Error: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 975fec52-0a6f-498f-b451-3c7980a22cc6: QueryFailedError: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '79d749f8-221c-4650-92f2-1f301c92ae38',
    'ORQUIDEA AMARELA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:00.774Z
  ],
  driverError: Error: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '79d749f8-221c-4650-92f2-1f301c92ae38',
    'ORQUIDEA AMARELA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:00.774Z
  ],
  driverError: Error: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2c9c57ca-5742-478a-9262-12a7fdd60948: QueryFailedError: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54b3ede0-8c14-416e-9e7e-cc04953f4990',
    'ORQUIDEA BRANCA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:10.964Z
  ],
  driverError: Error: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54b3ede0-8c14-416e-9e7e-cc04953f4990',
    'ORQUIDEA BRANCA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:10.964Z
  ],
  driverError: Error: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 41f2f063-00c9-4c92-9ec6-a07ea1288c71: QueryFailedError: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b386bb35-7355-4fe1-a931-be5bc280559a',
    'CAIXA DE SOM ´PORTATIL PALACIO DO SOM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:35.437Z
  ],
  driverError: Error: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b386bb35-7355-4fe1-a931-be5bc280559a',
    'CAIXA DE SOM ´PORTATIL PALACIO DO SOM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:35.437Z
  ],
  driverError: Error: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
}
Erro ao aplicar log d872fccc-0d22-4140-8174-2eab87339d11: QueryFailedError: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6',
    'KIT LIMPEZA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:52.088Z
  ],
  driverError: Error: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6',
    'KIT LIMPEZA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:52.088Z
  ],
  driverError: Error: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 8c10da87-6842-491a-9ba5-51576b14f95e: QueryFailedError: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ce4920a5-d028-4619-b499-e5a7c16d5f0f',
    'PIJAMA VICTOR PIJAMAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:23:26.112Z
  ],
  driverError: Error: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ce4920a5-d028-4619-b499-e5a7c16d5f0f',
    'PIJAMA VICTOR PIJAMAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:23:26.112Z
  ],
  driverError: Error: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1a725176-ff7f-49d3-8e5d-af43dfdeafb9: QueryFailedError: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a137be50-9ac9-477d-87ef-1ca3d043fa9b',
    'CESTINHA DE DOCES DA DAMARIS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:35:21.220Z
  ],
  driverError: Error: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a137be50-9ac9-477d-87ef-1ca3d043fa9b',
    'CESTINHA DE DOCES DA DAMARIS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:35:21.220Z
  ],
  driverError: Error: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 23f54fe2-196c-46ae-8c88-f61c0b3d1f53: QueryFailedError: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac',
    'WISKY BALANTINES',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:20:37.706Z
  ],
  driverError: Error: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac',
    'WISKY BALANTINES',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:20:37.706Z
  ],
  driverError: Error: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 0a38fd4b-99a5-41ed-b0a4-6d85ee6692a7: QueryFailedError: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1',
    'COMBO VODKA E CAMPARI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:28:14.388Z
  ],
  driverError: Error: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1',
    'COMBO VODKA E CAMPARI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:28:14.388Z
  ],
  driverError: Error: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f3ad147f-44d1-43e0-84eb-1246cbb49b99: QueryFailedError: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43287901-8879-4130-938a-df03ecb2330e',
    'BALDE WISKY RED LABEL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:30:57.798Z
  ],
  driverError: Error: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43287901-8879-4130-938a-df03ecb2330e',
    'BALDE WISKY RED LABEL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:30:57.798Z
  ],
  driverError: Error: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6f0d2a7a-cd3f-4077-a005-c31bbf9b6141: QueryFailedError: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e82cbe37-7b68-42f2-b52f-2bf422510ff1',
    'BALDE HEINEKEN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:40:29.896Z
  ],
  driverError: Error: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e82cbe37-7b68-42f2-b52f-2bf422510ff1',
    'BALDE HEINEKEN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:40:29.896Z
  ],
  driverError: Error: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 505b0697-e94d-4faf-a20e-7cbfe92ee573: QueryFailedError: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0df5bb03-b341-4528-afb3-8b92e9f7fec9',
    'PUDIM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:18.126Z
  ],
  driverError: Error: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0df5bb03-b341-4528-afb3-8b92e9f7fec9',
    'PUDIM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:18.126Z
  ],
  driverError: Error: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e95098b9-32b3-42f0-92c9-1f8a37e90206: QueryFailedError: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '78534e19-3dbf-4947-9551-323be1fa469f',
    'CESTA DE FRUTAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:55.662Z
  ],
  driverError: Error: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '78534e19-3dbf-4947-9551-323be1fa469f',
    'CESTA DE FRUTAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:55.662Z
  ],
  driverError: Error: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 16adfdbb-7ad8-4add-bba3-62d8e2abf902: QueryFailedError: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '35621853-5165-4280-8bc1-3c870c2299e1',
    'SRRALHERIA JB',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:25.192Z
  ],
  driverError: Error: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '35621853-5165-4280-8bc1-3c870c2299e1',
    'SRRALHERIA JB',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:25.192Z
  ],
  driverError: Error: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6e755b8e-9e3b-4981-a14d-632ddcbffcdd: QueryFailedError: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52dbbf8c-c931-4d45-8b25-dd81444efc2b',
    'CARRIOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:56.072Z
  ],
  driverError: Error: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52dbbf8c-c931-4d45-8b25-dd81444efc2b',
    'CARRIOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:56.072Z
  ],
  driverError: Error: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9d82f13a-b8a7-47c3-a923-d299bb40b052: QueryFailedError: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '60b5cc0a-6ccd-4556-bf87-3eb76b082220',
    'CARRIOLA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:53:03.043Z
  ],
  driverError: Error: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '60b5cc0a-6ccd-4556-bf87-3eb76b082220',
    'CARRIOLA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:53:03.043Z
  ],
  driverError: Error: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 86b70436-f9a2-47a5-95f8-27f89e3fa358: QueryFailedError: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'acc27243-561a-4fe4-9b33-18bc27772673',
    '59a7c7c8-6be0-4148-9e6b-6747c4d10216',
    'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83',
    450,
    0,
    0,
    2025-10-12T00:48:59.122Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:48:59.122Z
  ],
  driverError: Error: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'acc27243-561a-4fe4-9b33-18bc27772673',
    '59a7c7c8-6be0-4148-9e6b-6747c4d10216',
    'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83',
    450,
    0,
    0,
    2025-10-12T00:48:59.122Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:48:59.122Z
  ],
  driverError: Error: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 5e192a81-1666-439b-b9cd-59f9b632f7eb: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 70276075-18cd-4f0b-a206-e5eed797953a: QueryFailedError: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1bf656bf-6cd2-4450-bdef-03117f549ac8',
    'VESTIDO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:56:58.019Z
  ],
  driverError: Error: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1bf656bf-6cd2-4450-bdef-03117f549ac8',
    'VESTIDO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:56:58.019Z
  ],
  driverError: Error: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 15aee60f-41a4-4e83-be82-ee1cef6ffaa9: QueryFailedError: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '129da2a6-8a4a-406f-afb8-8068207ca0e2',
    'BOTINA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:00:18.233Z
  ],
  driverError: Error: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '129da2a6-8a4a-406f-afb8-8068207ca0e2',
    'BOTINA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:00:18.233Z
  ],
  driverError: Error: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
}
Erro ao aplicar log fb4296b7-e0c1-49cd-98e6-e37610c02969: QueryFailedError: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6bc18195-3f65-43ca-854f-1a7c332e311b',
    '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2',
    70,
    'Cartão de Débito',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:04:35.364Z
  ],
  driverError: Error: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6bc18195-3f65-43ca-854f-1a7c332e311b',
    '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2',
    70,
    'Cartão de Débito',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:04:35.364Z
  ],
  driverError: Error: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4d2bde60-8a01-49e7-b025-766b6b83de49: QueryFailedError: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c',
    'a11510b8-de0c-48cd-afcd-f7b7b87d30f2',
    'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d',
    70,
    0,
    0,
    2025-10-12T02:11:53.199Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:11:53.199Z
  ],
  driverError: Error: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c',
    'a11510b8-de0c-48cd-afcd-f7b7b87d30f2',
    'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d',
    70,
    0,
    0,
    2025-10-12T02:11:53.199Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:11:53.199Z
  ],
  driverError: Error: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 86c77476-40c1-45d7-87a0-6769be41dd86: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 1b39d454-d63f-4a0d-8511-b2e2ebe36c84: QueryFailedError: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '72e3b4ab-140d-4731-99a9-98f91107f3b1',
    'ALMOFADA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:14:30.904Z
  ],
  driverError: Error: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '72e3b4ab-140d-4731-99a9-98f91107f3b1',
    'ALMOFADA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:14:30.904Z
  ],
  driverError: Error: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 0a38fd4b-99a5-41ed-b0a4-6d85ee6692a7: QueryFailedError: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1',
    'COMBO VODKA E CAMPARI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:28:14.388Z
  ],
  driverError: Error: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1',
    'COMBO VODKA E CAMPARI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:28:14.388Z
  ],
  driverError: Error: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f3ad147f-44d1-43e0-84eb-1246cbb49b99: QueryFailedError: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43287901-8879-4130-938a-df03ecb2330e',
    'BALDE WISKY RED LABEL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:30:57.798Z
  ],
  driverError: Error: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43287901-8879-4130-938a-df03ecb2330e',
    'BALDE WISKY RED LABEL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:30:57.798Z
  ],
  driverError: Error: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar log a5a549b0-3e6b-458d-8c3f-d142077f246e: QueryFailedError: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '144e44d8-a01f-421e-877b-7b0fcee959e6',
    'CAMISA PALMEIRAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:19:41.028Z
  ],
  driverError: Error: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '144e44d8-a01f-421e-877b-7b0fcee959e6',
    'CAMISA PALMEIRAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:19:41.028Z
  ],
  driverError: Error: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar log edeb26fb-38e2-4eb0-b804-775b84e561b2: QueryFailedError: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c76afb79-c11a-4c26-96cf-78ac056d1b4c',
    'CAMISA SAO PAULO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:21:28.717Z
  ],
  driverError: Error: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c76afb79-c11a-4c26-96cf-78ac056d1b4c',
    'CAMISA SAO PAULO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:21:28.717Z
  ],
  driverError: Error: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 86ad4c95-ce6c-41b9-a340-f487f2e9b8e6: QueryFailedError: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df',
    'CAMISA CORINTHIANS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:22:13.480Z
  ],
  driverError: Error: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df',
    'CAMISA CORINTHIANS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:22:13.480Z
  ],
  driverError: Error: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
}
Erro ao aplicar log ab0da363-1cc6-49fd-99d3-7fd7541513dd: QueryFailedError: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'aa706f0d-1f7f-4221-acdc-6250557b1caf',
    'CAMISA SANTOS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:23:51.644Z
  ],
  driverError: Error: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'aa706f0d-1f7f-4221-acdc-6250557b1caf',
    'CAMISA SANTOS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:23:51.644Z
  ],
  driverError: Error: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6f0d2a7a-cd3f-4077-a005-c31bbf9b6141: QueryFailedError: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e82cbe37-7b68-42f2-b52f-2bf422510ff1',
    'BALDE HEINEKEN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:40:29.896Z
  ],
  driverError: Error: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e82cbe37-7b68-42f2-b52f-2bf422510ff1',
    'BALDE HEINEKEN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:40:29.896Z
  ],
  driverError: Error: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 505b0697-e94d-4faf-a20e-7cbfe92ee573: QueryFailedError: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0df5bb03-b341-4528-afb3-8b92e9f7fec9',
    'PUDIM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:18.126Z
  ],
  driverError: Error: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0df5bb03-b341-4528-afb3-8b92e9f7fec9',
    'PUDIM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:18.126Z
  ],
  driverError: Error: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e95098b9-32b3-42f0-92c9-1f8a37e90206: QueryFailedError: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '78534e19-3dbf-4947-9551-323be1fa469f',
    'CESTA DE FRUTAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:55.662Z
  ],
  driverError: Error: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '78534e19-3dbf-4947-9551-323be1fa469f',
    'CESTA DE FRUTAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:55.662Z
  ],
  driverError: Error: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 16adfdbb-7ad8-4add-bba3-62d8e2abf902: QueryFailedError: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '35621853-5165-4280-8bc1-3c870c2299e1',
    'SRRALHERIA JB',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:25.192Z
  ],
  driverError: Error: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '35621853-5165-4280-8bc1-3c870c2299e1',
    'SRRALHERIA JB',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:25.192Z
  ],
  driverError: Error: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6e755b8e-9e3b-4981-a14d-632ddcbffcdd: QueryFailedError: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52dbbf8c-c931-4d45-8b25-dd81444efc2b',
    'CARRIOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:56.072Z
  ],
  driverError: Error: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52dbbf8c-c931-4d45-8b25-dd81444efc2b',
    'CARRIOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:56.072Z
  ],
  driverError: Error: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9d82f13a-b8a7-47c3-a923-d299bb40b052: QueryFailedError: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '60b5cc0a-6ccd-4556-bf87-3eb76b082220',
    'CARRIOLA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:53:03.043Z
  ],
  driverError: Error: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '60b5cc0a-6ccd-4556-bf87-3eb76b082220',
    'CARRIOLA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:53:03.043Z
  ],
  driverError: Error: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
}
Erro ao aplicar log c0950c37-c3ea-484a-a84b-32f658438a87: QueryFailedError: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a89b6254-47f3-4fa5-9961-8cb7da0d78e1',
    'PIMENTA DO REINO 1 KG CLEIDE PAGIN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:36.241Z
  ],
  driverError: Error: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a89b6254-47f3-4fa5-9961-8cb7da0d78e1',
    'PIMENTA DO REINO 1 KG CLEIDE PAGIN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:36.241Z
  ],
  driverError: Error: Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a89b6254-47f3-4fa5-9961-8cb7da0d78e1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a89b6254-47f3-4fa5-9961-8cb7da0d78e1', 'PIMENTA DO REINO 1 KG CLEIDE PAGIN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:36.241', DEFAULT, DEFAULT)"
}
Erro ao aplicar log d8ef2e9a-732b-44c2-907a-9d2d9e7e8bb7: QueryFailedError: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '580ce189-0eed-4773-9f3b-71c020c9e986',
    'TACHO DE ARADO BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:58.402Z
  ],
  driverError: Error: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '580ce189-0eed-4773-9f3b-71c020c9e986',
    'TACHO DE ARADO BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:18:58.402Z
  ],
  driverError: Error: Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '580ce189-0eed-4773-9f3b-71c020c9e986' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('580ce189-0eed-4773-9f3b-71c020c9e986', 'TACHO DE ARADO BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:18:58.402', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 04bb8d2c-baef-4613-9363-93b6b22e8c3d: QueryFailedError: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7',
    'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:19:23.916Z
  ],
  driverError: Error: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7',
    'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:19:23.916Z
  ],
  driverError: Error: Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '12a3853f-47e9-4cca-8ba9-8eb84bfc28d7' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('12a3853f-47e9-4cca-8ba9-8eb84bfc28d7', 'CHURRASQUEIRA E GARRAFÃO DE PINGA BRUNO E VIOLA JB', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:19:23.916', DEFAULT, DEFAULT)"
}
Erro ao aplicar log de84c4f9-73af-4f98-8fbe-baf797ac3bd7: QueryFailedError: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e680c917-7d29-4261-9b97-d5f71be9f822',
    'KIT JOIAS GISELE CIMOAGRO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:03.557Z
  ],
  driverError: Error: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e680c917-7d29-4261-9b97-d5f71be9f822',
    'KIT JOIAS GISELE CIMOAGRO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:03.557Z
  ],
  driverError: Error: Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e680c917-7d29-4261-9b97-d5f71be9f822' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e680c917-7d29-4261-9b97-d5f71be9f822', 'KIT JOIAS GISELE CIMOAGRO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:03.557', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2274ffb3-a3df-4254-9109-03492fcd3287: QueryFailedError: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0482c347-886d-4621-b319-6fd04775a88d',
    'MESA INFANTIL JOAO BRASIL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:19.724Z
  ],
  driverError: Error: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0482c347-886d-4621-b319-6fd04775a88d',
    'MESA INFANTIL JOAO BRASIL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:21:19.724Z
  ],
  driverError: Error: Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0482c347-886d-4621-b319-6fd04775a88d' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0482c347-886d-4621-b319-6fd04775a88d', 'MESA INFANTIL JOAO BRASIL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:21:19.724', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7e2b1580-1c79-4702-a6dd-65975bcbd3eb: QueryFailedError: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f01e8cd9-e7be-41ce-8403-912d98ddd3fe',
    'FESTATESTE',
    'NA',
    'ITAPOLIS',
    2025-10-11T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    'COMISSAO',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:27:49.267Z
  ],
  driverError: Error: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f01e8cd9-e7be-41ce-8403-912d98ddd3fe',
    'FESTATESTE',
    'NA',
    'ITAPOLIS',
    2025-10-11T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    2025-10-15T00:00:00.000Z,
    'COMISSAO',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T20:27:49.267Z
  ],
  driverError: Error: Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f01e8cd9-e7be-41ce-8403-912d98ddd3fe' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f01e8cd9-e7be-41ce-8403-912d98ddd3fe', 'FESTATESTE', 'NA', 'ITAPOLIS', DEFAULT, '2025-10-11 00:00:00.000', '2025-10-15 00:00:00.000', '2025-10-15 00:00:00.000', 'COMISSAO', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 20:27:49.267', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 8102664e-9514-4012-b5e0-afffcfebcacb: QueryFailedError: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dd98ff21-dde5-415c-bade-47f374cd8ea2',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:38.052Z
  ],
  driverError: Error: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dd98ff21-dde5-415c-bade-47f374cd8ea2',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:38.052Z
  ],
  driverError: Error: Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dd98ff21-dde5-415c-bade-47f374cd8ea2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dd98ff21-dde5-415c-bade-47f374cd8ea2', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:38.052', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3a784003-0002-4fd9-b654-e3c272a4ee1b: QueryFailedError: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:00.215Z
  ],
  driverError: Error: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5',
    'Vaso cromado',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:20:00.215Z
  ],
  driverError: Error: Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '7064d9b9-d04e-4dbe-8f5d-f655d649b3b5' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('7064d9b9-d04e-4dbe-8f5d-f655d649b3b5', 'Vaso cromado', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:20:00.215', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 975fec52-0a6f-498f-b451-3c7980a22cc6: QueryFailedError: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '79d749f8-221c-4650-92f2-1f301c92ae38',
    'ORQUIDEA AMARELA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:00.774Z
  ],
  driverError: Error: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '79d749f8-221c-4650-92f2-1f301c92ae38',
    'ORQUIDEA AMARELA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:00.774Z
  ],
  driverError: Error: Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '79d749f8-221c-4650-92f2-1f301c92ae38' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('79d749f8-221c-4650-92f2-1f301c92ae38', 'ORQUIDEA AMARELA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:00.774', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2c9c57ca-5742-478a-9262-12a7fdd60948: QueryFailedError: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54b3ede0-8c14-416e-9e7e-cc04953f4990',
    'ORQUIDEA BRANCA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:10.964Z
  ],
  driverError: Error: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '54b3ede0-8c14-416e-9e7e-cc04953f4990',
    'ORQUIDEA BRANCA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:10.964Z
  ],
  driverError: Error: Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '54b3ede0-8c14-416e-9e7e-cc04953f4990' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('54b3ede0-8c14-416e-9e7e-cc04953f4990', 'ORQUIDEA BRANCA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:10.964', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 41f2f063-00c9-4c92-9ec6-a07ea1288c71: QueryFailedError: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b386bb35-7355-4fe1-a931-be5bc280559a',
    'CAIXA DE SOM ´PORTATIL PALACIO DO SOM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:35.437Z
  ],
  driverError: Error: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b386bb35-7355-4fe1-a931-be5bc280559a',
    'CAIXA DE SOM ´PORTATIL PALACIO DO SOM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:35.437Z
  ],
  driverError: Error: Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b386bb35-7355-4fe1-a931-be5bc280559a' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b386bb35-7355-4fe1-a931-be5bc280559a', 'CAIXA DE SOM ´PORTATIL PALACIO DO SOM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:35.437', DEFAULT, DEFAULT)"
}
Erro ao aplicar log d872fccc-0d22-4140-8174-2eab87339d11: QueryFailedError: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6',
    'KIT LIMPEZA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:52.088Z
  ],
  driverError: Error: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6',
    'KIT LIMPEZA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:21:52.088Z
  ],
  driverError: Error: Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6dbb70e4-eac0-4c4e-b570-cb4a7565b7d6', 'KIT LIMPEZA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:21:52.088', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 8c10da87-6842-491a-9ba5-51576b14f95e: QueryFailedError: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ce4920a5-d028-4619-b499-e5a7c16d5f0f',
    'PIJAMA VICTOR PIJAMAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:23:26.112Z
  ],
  driverError: Error: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ce4920a5-d028-4619-b499-e5a7c16d5f0f',
    'PIJAMA VICTOR PIJAMAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:23:26.112Z
  ],
  driverError: Error: Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ce4920a5-d028-4619-b499-e5a7c16d5f0f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ce4920a5-d028-4619-b499-e5a7c16d5f0f', 'PIJAMA VICTOR PIJAMAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:23:26.112', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 70276075-18cd-4f0b-a206-e5eed797953a: QueryFailedError: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1bf656bf-6cd2-4450-bdef-03117f549ac8',
    'VESTIDO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:56:58.019Z
  ],
  driverError: Error: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1bf656bf-6cd2-4450-bdef-03117f549ac8',
    'VESTIDO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:56:58.019Z
  ],
  driverError: Error: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 15aee60f-41a4-4e83-be82-ee1cef6ffaa9: QueryFailedError: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '129da2a6-8a4a-406f-afb8-8068207ca0e2',
    'BOTINA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:00:18.233Z
  ],
  driverError: Error: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '129da2a6-8a4a-406f-afb8-8068207ca0e2',
    'BOTINA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:00:18.233Z
  ],
  driverError: Error: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
}
Erro ao aplicar log fb4296b7-e0c1-49cd-98e6-e37610c02969: QueryFailedError: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6bc18195-3f65-43ca-854f-1a7c332e311b',
    '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2',
    70,
    'Cartão de Débito',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:04:35.364Z
  ],
  driverError: Error: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6bc18195-3f65-43ca-854f-1a7c332e311b',
    '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2',
    70,
    'Cartão de Débito',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:04:35.364Z
  ],
  driverError: Error: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1a725176-ff7f-49d3-8e5d-af43dfdeafb9: QueryFailedError: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a137be50-9ac9-477d-87ef-1ca3d043fa9b',
    'CESTINHA DE DOCES DA DAMARIS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:35:21.220Z
  ],
  driverError: Error: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a137be50-9ac9-477d-87ef-1ca3d043fa9b',
    'CESTINHA DE DOCES DA DAMARIS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-11T23:35:21.220Z
  ],
  driverError: Error: Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a137be50-9ac9-477d-87ef-1ca3d043fa9b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a137be50-9ac9-477d-87ef-1ca3d043fa9b', 'CESTINHA DE DOCES DA DAMARIS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-11 23:35:21.220', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4d2bde60-8a01-49e7-b025-766b6b83de49: QueryFailedError: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c',
    'a11510b8-de0c-48cd-afcd-f7b7b87d30f2',
    'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d',
    70,
    0,
    0,
    2025-10-12T02:11:53.199Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:11:53.199Z
  ],
  driverError: Error: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c',
    'a11510b8-de0c-48cd-afcd-f7b7b87d30f2',
    'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d',
    70,
    0,
    0,
    2025-10-12T02:11:53.199Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:11:53.199Z
  ],
  driverError: Error: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 23f54fe2-196c-46ae-8c88-f61c0b3d1f53: QueryFailedError: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac',
    'WISKY BALANTINES',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:20:37.706Z
  ],
  driverError: Error: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac',
    'WISKY BALANTINES',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:20:37.706Z
  ],
  driverError: Error: Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5390c1b0-e8ab-4dd3-bf7b-465f5016c6ac', 'WISKY BALANTINES', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:20:37.706', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 86c77476-40c1-45d7-87a0-6769be41dd86: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 1b39d454-d63f-4a0d-8511-b2e2ebe36c84: QueryFailedError: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '72e3b4ab-140d-4731-99a9-98f91107f3b1',
    'ALMOFADA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:14:30.904Z
  ],
  driverError: Error: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '72e3b4ab-140d-4731-99a9-98f91107f3b1',
    'ALMOFADA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:14:30.904Z
  ],
  driverError: Error: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
}
Erro ao aplicar log a5a549b0-3e6b-458d-8c3f-d142077f246e: QueryFailedError: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '144e44d8-a01f-421e-877b-7b0fcee959e6',
    'CAMISA PALMEIRAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:19:41.028Z
  ],
  driverError: Error: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '144e44d8-a01f-421e-877b-7b0fcee959e6',
    'CAMISA PALMEIRAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:19:41.028Z
  ],
  driverError: Error: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar log edeb26fb-38e2-4eb0-b804-775b84e561b2: QueryFailedError: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c76afb79-c11a-4c26-96cf-78ac056d1b4c',
    'CAMISA SAO PAULO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:21:28.717Z
  ],
  driverError: Error: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c76afb79-c11a-4c26-96cf-78ac056d1b4c',
    'CAMISA SAO PAULO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:21:28.717Z
  ],
  driverError: Error: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 86ad4c95-ce6c-41b9-a340-f487f2e9b8e6: QueryFailedError: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df',
    'CAMISA CORINTHIANS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:22:13.480Z
  ],
  driverError: Error: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df',
    'CAMISA CORINTHIANS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:22:13.480Z
  ],
  driverError: Error: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
}
Erro ao aplicar log ab0da363-1cc6-49fd-99d3-7fd7541513dd: QueryFailedError: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'aa706f0d-1f7f-4221-acdc-6250557b1caf',
    'CAMISA SANTOS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:23:51.644Z
  ],
  driverError: Error: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'aa706f0d-1f7f-4221-acdc-6250557b1caf',
    'CAMISA SANTOS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:23:51.644Z
  ],
  driverError: Error: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 86b70436-f9a2-47a5-95f8-27f89e3fa358: QueryFailedError: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'acc27243-561a-4fe4-9b33-18bc27772673',
    '59a7c7c8-6be0-4148-9e6b-6747c4d10216',
    'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83',
    450,
    0,
    0,
    2025-10-12T00:48:59.122Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:48:59.122Z
  ],
  driverError: Error: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'acc27243-561a-4fe4-9b33-18bc27772673',
    '59a7c7c8-6be0-4148-9e6b-6747c4d10216',
    'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83',
    450,
    0,
    0,
    2025-10-12T00:48:59.122Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T00:48:59.122Z
  ],
  driverError: Error: Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'acc27243-561a-4fe4-9b33-18bc27772673' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('acc27243-561a-4fe4-9b33-18bc27772673', '59a7c7c8-6be0-4148-9e6b-6747c4d10216', 'd95b7ac6-92d5-4c91-8c68-a6e5a66d1a83', 450, 0, 0, DEFAULT, '2025-10-12 00:48:59.122', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 00:48:59.122', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 5e192a81-1666-439b-b9cd-59f9b632f7eb: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 0a38fd4b-99a5-41ed-b0a4-6d85ee6692a7: QueryFailedError: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1',
    'COMBO VODKA E CAMPARI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:28:14.388Z
  ],
  driverError: Error: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1',
    'COMBO VODKA E CAMPARI',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:28:14.388Z
  ],
  driverError: Error: Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f0f6a6a8-6021-4b50-bea6-f89ea7299fd1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f0f6a6a8-6021-4b50-bea6-f89ea7299fd1', 'COMBO VODKA E CAMPARI', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:28:14.388', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f3ad147f-44d1-43e0-84eb-1246cbb49b99: QueryFailedError: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43287901-8879-4130-938a-df03ecb2330e',
    'BALDE WISKY RED LABEL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:30:57.798Z
  ],
  driverError: Error: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43287901-8879-4130-938a-df03ecb2330e',
    'BALDE WISKY RED LABEL',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:30:57.798Z
  ],
  driverError: Error: Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43287901-8879-4130-938a-df03ecb2330e' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43287901-8879-4130-938a-df03ecb2330e', 'BALDE WISKY RED LABEL', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:30:57.798', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6f0d2a7a-cd3f-4077-a005-c31bbf9b6141: QueryFailedError: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e82cbe37-7b68-42f2-b52f-2bf422510ff1',
    'BALDE HEINEKEN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:40:29.896Z
  ],
  driverError: Error: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e82cbe37-7b68-42f2-b52f-2bf422510ff1',
    'BALDE HEINEKEN',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:40:29.896Z
  ],
  driverError: Error: Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e82cbe37-7b68-42f2-b52f-2bf422510ff1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e82cbe37-7b68-42f2-b52f-2bf422510ff1', 'BALDE HEINEKEN', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:40:29.896', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 505b0697-e94d-4faf-a20e-7cbfe92ee573: QueryFailedError: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0df5bb03-b341-4528-afb3-8b92e9f7fec9',
    'PUDIM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:18.126Z
  ],
  driverError: Error: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0df5bb03-b341-4528-afb3-8b92e9f7fec9',
    'PUDIM',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:18.126Z
  ],
  driverError: Error: Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0df5bb03-b341-4528-afb3-8b92e9f7fec9' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0df5bb03-b341-4528-afb3-8b92e9f7fec9', 'PUDIM', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:18.126', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e95098b9-32b3-42f0-92c9-1f8a37e90206: QueryFailedError: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '78534e19-3dbf-4947-9551-323be1fa469f',
    'CESTA DE FRUTAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:55.662Z
  ],
  driverError: Error: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '78534e19-3dbf-4947-9551-323be1fa469f',
    'CESTA DE FRUTAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:44:55.662Z
  ],
  driverError: Error: Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '78534e19-3dbf-4947-9551-323be1fa469f' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('78534e19-3dbf-4947-9551-323be1fa469f', 'CESTA DE FRUTAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:44:55.662', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 16adfdbb-7ad8-4add-bba3-62d8e2abf902: QueryFailedError: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '35621853-5165-4280-8bc1-3c870c2299e1',
    'SRRALHERIA JB',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:25.192Z
  ],
  driverError: Error: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '35621853-5165-4280-8bc1-3c870c2299e1',
    'SRRALHERIA JB',
    '',
    '',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:25.192Z
  ],
  driverError: Error: Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
    sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '35621853-5165-4280-8bc1-3c870c2299e1' for key 'PRIMARY'",
  sql: "INSERT INTO `pessoas`(`id`, `nome`, `apelido`, `cpf_cnpj`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('35621853-5165-4280-8bc1-3c870c2299e1', 'SRRALHERIA JB', '', '', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:25.192', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6e755b8e-9e3b-4981-a14d-632ddcbffcdd: QueryFailedError: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52dbbf8c-c931-4d45-8b25-dd81444efc2b',
    'CARRIOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:56.072Z
  ],
  driverError: Error: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '52dbbf8c-c931-4d45-8b25-dd81444efc2b',
    'CARRIOL',
    0,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:52:56.072Z
  ],
  driverError: Error: Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '52dbbf8c-c931-4d45-8b25-dd81444efc2b' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('52dbbf8c-c931-4d45-8b25-dd81444efc2b', 'CARRIOL', 0, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:52:56.072', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9d82f13a-b8a7-47c3-a923-d299bb40b052: QueryFailedError: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '60b5cc0a-6ccd-4556-bf87-3eb76b082220',
    'CARRIOLA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:53:03.043Z
  ],
  driverError: Error: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '60b5cc0a-6ccd-4556-bf87-3eb76b082220',
    'CARRIOLA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:53:03.043Z
  ],
  driverError: Error: Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '60b5cc0a-6ccd-4556-bf87-3eb76b082220' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('60b5cc0a-6ccd-4556-bf87-3eb76b082220', 'CARRIOLA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:53:03.043', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 70276075-18cd-4f0b-a206-e5eed797953a: QueryFailedError: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1bf656bf-6cd2-4450-bdef-03117f549ac8',
    'VESTIDO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:56:58.019Z
  ],
  driverError: Error: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1bf656bf-6cd2-4450-bdef-03117f549ac8',
    'VESTIDO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T01:56:58.019Z
  ],
  driverError: Error: Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1bf656bf-6cd2-4450-bdef-03117f549ac8' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1bf656bf-6cd2-4450-bdef-03117f549ac8', 'VESTIDO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 01:56:58.019', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 15aee60f-41a4-4e83-be82-ee1cef6ffaa9: QueryFailedError: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '129da2a6-8a4a-406f-afb8-8068207ca0e2',
    'BOTINA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:00:18.233Z
  ],
  driverError: Error: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '129da2a6-8a4a-406f-afb8-8068207ca0e2',
    'BOTINA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:00:18.233Z
  ],
  driverError: Error: Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '129da2a6-8a4a-406f-afb8-8068207ca0e2' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('129da2a6-8a4a-406f-afb8-8068207ca0e2', 'BOTINA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:00:18.233', DEFAULT, DEFAULT)"
}
Erro ao aplicar log fb4296b7-e0c1-49cd-98e6-e37610c02969: QueryFailedError: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6bc18195-3f65-43ca-854f-1a7c332e311b',
    '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2',
    70,
    'Cartão de Débito',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:04:35.364Z
  ],
  driverError: Error: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '6bc18195-3f65-43ca-854f-1a7c332e311b',
    '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2',
    70,
    'Cartão de Débito',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:04:35.364Z
  ],
  driverError: Error: Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '6bc18195-3f65-43ca-854f-1a7c332e311b' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('6bc18195-3f65-43ca-854f-1a7c332e311b', '839a9cb9-f5e2-42a8-bf7a-90b0d8b2baf2', DEFAULT, 70, 'Cartão de Débito', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:04:35.364', DEFAULT, DEFAULT)"
}
Erro ao aplicar log acffb02c-2878-4316-ac5b-94bfc99320e9: QueryFailedError: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e5140f73-6a7e-4689-9bdb-5b7c05f36945',
    'bd602a12-79d1-48c5-8c96-703aeedcb9e9',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.304Z
  ],
  driverError: Error: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e5140f73-6a7e-4689-9bdb-5b7c05f36945',
    'bd602a12-79d1-48c5-8c96-703aeedcb9e9',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.304Z
  ],
  driverError: Error: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
}
Erro ao aplicar log db422d9c-cd3c-44b1-bc53-706cad6bb4d8: QueryFailedError: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a95f8c0b-3fbe-4f1c-868d-da9654574ae9',
    'f0c86d57-80b5-4f99-8e50-b201cbc3736e',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.537Z
  ],
  driverError: Error: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a95f8c0b-3fbe-4f1c-868d-da9654574ae9',
    'f0c86d57-80b5-4f99-8e50-b201cbc3736e',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.537Z
  ],
  driverError: Error: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9b0b2c76-693f-460f-bafb-a9bc7ebd7727: QueryFailedError: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b0055747-e08d-46dd-bbeb-dda4d8ff4983',
    'f8d69907-45ab-48f0-9489-696be5785ac8',
    900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.568Z
  ],
  driverError: Error: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b0055747-e08d-46dd-bbeb-dda4d8ff4983',
    'f8d69907-45ab-48f0-9489-696be5785ac8',
    900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.568Z
  ],
  driverError: Error: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3dba5094-9e4b-4e7f-9c7f-d86ee37f215e: QueryFailedError: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9548b04f-0160-4889-a74d-c09b222e70cd',
    'c79c46b3-17fb-4f40-b8cf-a8bb380df445',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.591Z
  ],
  driverError: Error: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9548b04f-0160-4889-a74d-c09b222e70cd',
    'c79c46b3-17fb-4f40-b8cf-a8bb380df445',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.591Z
  ],
  driverError: Error: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
}
Erro ao aplicar log be4a275d-e939-45a7-93c4-2b83a819983c: QueryFailedError: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ad824f2a-dace-4210-9cbf-50fc2a330694',
    '0e8ca5dd-6d46-4372-b036-bc3150545c79',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.615Z
  ],
  driverError: Error: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ad824f2a-dace-4210-9cbf-50fc2a330694',
    '0e8ca5dd-6d46-4372-b036-bc3150545c79',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.615Z
  ],
  driverError: Error: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f4e606f1-5b68-478e-bd2c-f4b16e179fe0: QueryFailedError: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6',
    'fefc9834-574e-4e6c-87ad-80945116f258',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.636Z
  ],
  driverError: Error: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6',
    'fefc9834-574e-4e6c-87ad-80945116f258',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.636Z
  ],
  driverError: Error: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e072cc8a-1db1-4dda-99f8-8dfc69cad7d6: QueryFailedError: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29e2624-90eb-4488-b60c-7549da2fe5b4',
    '2ea73171-a24d-4d52-a3d8-dce6779617ba',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.657Z
  ],
  driverError: Error: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29e2624-90eb-4488-b60c-7549da2fe5b4',
    '2ea73171-a24d-4d52-a3d8-dce6779617ba',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.657Z
  ],
  driverError: Error: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2c51fa84-1eb6-461a-8baf-76e0eed199d8: QueryFailedError: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '44248b01-97f6-4020-8868-2c823fb663ca',
    'e58e7432-26db-41cd-991c-fc9ffd858175',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.678Z
  ],
  driverError: Error: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '44248b01-97f6-4020-8868-2c823fb663ca',
    'e58e7432-26db-41cd-991c-fc9ffd858175',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.678Z
  ],
  driverError: Error: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
}
Erro ao aplicar log eda066d6-9585-46eb-8314-bb32778aa6e0: QueryFailedError: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e282c11b-c890-4f05-8e1b-496d168f3c82',
    '383a84f2-c97d-4ab3-b5a5-2cb26245106c',
    750,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.700Z
  ],
  driverError: Error: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e282c11b-c890-4f05-8e1b-496d168f3c82',
    '383a84f2-c97d-4ab3-b5a5-2cb26245106c',
    750,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.700Z
  ],
  driverError: Error: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4174ab03-8dd4-4800-8873-cfae44332293: QueryFailedError: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '816e1c1d-112f-4c80-9e4b-d84c316dd496',
    'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.721Z
  ],
  driverError: Error: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '816e1c1d-112f-4c80-9e4b-d84c316dd496',
    'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.721Z
  ],
  driverError: Error: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 77f4f675-6378-4513-8da4-7c246abf9bbe: QueryFailedError: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '87616c41-6f07-4cd0-bf61-824aeb6b4cbf',
    '41595cf3-c59a-4a8d-b654-addfa7ba7fa2',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.743Z
  ],
  driverError: Error: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '87616c41-6f07-4cd0-bf61-824aeb6b4cbf',
    '41595cf3-c59a-4a8d-b654-addfa7ba7fa2',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.743Z
  ],
  driverError: Error: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3076fe8e-cb30-4d6a-b6ac-8c762776577f: QueryFailedError: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'cb28ec47-41ae-4f49-b040-495a27ef278e',
    '744ebaea-4ac5-44ab-aa5d-4426cd99d45d',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.763Z
  ],
  driverError: Error: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'cb28ec47-41ae-4f49-b040-495a27ef278e',
    '744ebaea-4ac5-44ab-aa5d-4426cd99d45d',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.763Z
  ],
  driverError: Error: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 542776e2-c157-4bbe-baf7-252ec7cb6acf: QueryFailedError: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a',
    '29b36ec6-ef05-405f-99ec-0390986ebdc7',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.786Z
  ],
  driverError: Error: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a',
    '29b36ec6-ef05-405f-99ec-0390986ebdc7',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.786Z
  ],
  driverError: Error: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f166d2f7-c267-43e8-aeac-f3373c540294: QueryFailedError: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b25b6094-48f6-47b3-baf5-3bdaed543fc3',
    '5aa85d31-491e-4105-89f5-b5cb2f552b79',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.810Z
  ],
  driverError: Error: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b25b6094-48f6-47b3-baf5-3bdaed543fc3',
    '5aa85d31-491e-4105-89f5-b5cb2f552b79',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.810Z
  ],
  driverError: Error: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6190a161-2b0f-4b61-bbba-c7fe2a250947: QueryFailedError: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '84a6d22b-23c4-4711-831e-dc8184baeb51',
    '995181e9-8852-4275-917e-6bf6d0f8bb06',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.833Z
  ],
  driverError: Error: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '84a6d22b-23c4-4711-831e-dc8184baeb51',
    '995181e9-8852-4275-917e-6bf6d0f8bb06',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.833Z
  ],
  driverError: Error: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
}
Erro ao aplicar log bda05aa1-2865-4ca8-9e0b-1a5ebeb3cf66: QueryFailedError: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4889aeba-8979-4dd3-a173-1a191c437d25',
    '55c7f7be-1a03-4d16-97e0-79e8b30bd70a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.856Z
  ],
  driverError: Error: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4889aeba-8979-4dd3-a173-1a191c437d25',
    '55c7f7be-1a03-4d16-97e0-79e8b30bd70a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.856Z
  ],
  driverError: Error: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 04cb5ac8-1a47-4c81-8c6c-b81106f45718: QueryFailedError: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '978460d2-16e9-4d7c-8cb3-9f9e90299dd4',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.881Z
  ],
  driverError: Error: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '978460d2-16e9-4d7c-8cb3-9f9e90299dd4',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.881Z
  ],
  driverError: Error: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 12d40195-c1d5-4a7d-80e2-c48351c89392: QueryFailedError: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '255f8c05-bb8f-4c6b-9105-fea727602c8d',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.903Z
  ],
  driverError: Error: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '255f8c05-bb8f-4c6b-9105-fea727602c8d',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.903Z
  ],
  driverError: Error: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3ed2067b-0691-444d-aad6-522d7550d906: QueryFailedError: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9c253a06-207e-4b46-989b-5f2cac213574',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.924Z
  ],
  driverError: Error: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9c253a06-207e-4b46-989b-5f2cac213574',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.924Z
  ],
  driverError: Error: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f4b0d8db-05f6-4d86-8c56-73fe8fdb6f4f: QueryFailedError: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd074be47-7059-42a6-a0f6-22c8fa69db19',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.944Z
  ],
  driverError: Error: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd074be47-7059-42a6-a0f6-22c8fa69db19',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.944Z
  ],
  driverError: Error: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 81aa0f85-7679-4b15-9e95-84b16d26f872: QueryFailedError: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.965Z
  ],
  driverError: Error: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.965Z
  ],
  driverError: Error: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 5e16f22d-1787-42ed-a376-1c6347808910: QueryFailedError: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '09c2a888-594e-4d02-b55c-12146520ec2a',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.985Z
  ],
  driverError: Error: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '09c2a888-594e-4d02-b55c-12146520ec2a',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.985Z
  ],
  driverError: Error: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 847bd788-526e-4d98-9f48-1c23308246a7: QueryFailedError: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.009Z
  ],
  driverError: Error: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.009Z
  ],
  driverError: Error: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
}
Erro ao aplicar log aa495232-d9a0-464b-b4d0-d6aa25fe15be: QueryFailedError: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8c4bcd63-7661-448c-be86-8d12be6c07eb',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.028Z
  ],
  driverError: Error: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8c4bcd63-7661-448c-be86-8d12be6c07eb',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.028Z
  ],
  driverError: Error: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3d23b59f-b185-46ac-a3f6-e856614ff527: QueryFailedError: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b238cd9b-1f22-417a-86e4-eafea38a94a1',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.049Z
  ],
  driverError: Error: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b238cd9b-1f22-417a-86e4-eafea38a94a1',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.049Z
  ],
  driverError: Error: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4d2bde60-8a01-49e7-b025-766b6b83de49: QueryFailedError: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c',
    'a11510b8-de0c-48cd-afcd-f7b7b87d30f2',
    'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d',
    70,
    0,
    0,
    2025-10-12T02:11:53.199Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:11:53.199Z
  ],
  driverError: Error: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, ?, DEFAULT, ?, DEFAULT, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c',
    'a11510b8-de0c-48cd-afcd-f7b7b87d30f2',
    'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d',
    70,
    0,
    0,
    2025-10-12T02:11:53.199Z,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:11:53.199Z
  ],
  driverError: Error: Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4cb288c5-9f4d-4dc0-a0e8-c8065349a54c' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber`(`id`, `pessoaId`, `festaLeilaoId`, `valor`, `desconto`, `acrescimo`, `observacao`, `vencimento`, `dataPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4cb288c5-9f4d-4dc0-a0e8-c8065349a54c', 'a11510b8-de0c-48cd-afcd-f7b7b87d30f2', 'e8a6c38d-bc2e-4af2-b9c4-29aa1a0b761d', 70, 0, 0, DEFAULT, '2025-10-12 02:11:53.199', DEFAULT, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:11:53.199', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 50db1f6a-e816-4232-87a8-8b089a1499af: QueryFailedError: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43df6091-282e-47f8-a981-f9c610ee6d88',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.075Z
  ],
  driverError: Error: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43df6091-282e-47f8-a981-f9c610ee6d88',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.075Z
  ],
  driverError: Error: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
}
Erro ao aplicar log a42af96f-740e-46fb-921a-6e11f087ce41: QueryFailedError: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '81a3d75d-252f-4f9e-92c8-11d0324aab11',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.094Z
  ],
  driverError: Error: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '81a3d75d-252f-4f9e-92c8-11d0324aab11',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.094Z
  ],
  driverError: Error: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 54f53670-3340-46df-b4cd-6c0214a48386: QueryFailedError: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b65f4de1-b121-45f5-b2ae-b1cb5a18a413',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.114Z
  ],
  driverError: Error: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b65f4de1-b121-45f5-b2ae-b1cb5a18a413',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.114Z
  ],
  driverError: Error: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 46c52caa-2866-482b-bd40-e06155c976a3: QueryFailedError: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '314dd11e-fa1f-47fd-bffc-456c2b3e57f9',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.134Z
  ],
  driverError: Error: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '314dd11e-fa1f-47fd-bffc-456c2b3e57f9',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.134Z
  ],
  driverError: Error: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 86c77476-40c1-45d7-87a0-6769be41dd86: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar logs em lote: Error: Cannot query across one-to-many for property contasReceber
    at UpdateQueryBuilder.createPropertyPath (/app/node_modules/typeorm/query-builder/QueryBuilder.js:944:27)
    at UpdateQueryBuilder.createUpdateExpression (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:303:18)
    at UpdateQueryBuilder.getQuery (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:34:21)
    at UpdateQueryBuilder.getQueryAndParameters (/app/node_modules/typeorm/query-builder/QueryBuilder.js:262:28)
    at UpdateQueryBuilder.execute (/app/node_modules/typeorm/query-builder/UpdateQueryBuilder.js:81:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.connection [as processFn] (file:///app/dist/workers/applyLogsWorker.js:58:25)
    at async /app/node_modules/bullmq/dist/cjs/classes/worker.js:493:32
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:767:24)
Erro ao aplicar log 1b39d454-d63f-4a0d-8511-b2e2ebe36c84: QueryFailedError: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '72e3b4ab-140d-4731-99a9-98f91107f3b1',
    'ALMOFADA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:14:30.904Z
  ],
  driverError: Error: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '72e3b4ab-140d-4731-99a9-98f91107f3b1',
    'ALMOFADA',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:14:30.904Z
  ],
  driverError: Error: Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '72e3b4ab-140d-4731-99a9-98f91107f3b1' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('72e3b4ab-140d-4731-99a9-98f91107f3b1', 'ALMOFADA', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:14:30.904', DEFAULT, DEFAULT)"
}
Erro ao aplicar log a5a549b0-3e6b-458d-8c3f-d142077f246e: QueryFailedError: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '144e44d8-a01f-421e-877b-7b0fcee959e6',
    'CAMISA PALMEIRAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:19:41.028Z
  ],
  driverError: Error: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '144e44d8-a01f-421e-877b-7b0fcee959e6',
    'CAMISA PALMEIRAS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:19:41.028Z
  ],
  driverError: Error: Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '144e44d8-a01f-421e-877b-7b0fcee959e6' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('144e44d8-a01f-421e-877b-7b0fcee959e6', 'CAMISA PALMEIRAS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:19:41.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar log edeb26fb-38e2-4eb0-b804-775b84e561b2: QueryFailedError: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c76afb79-c11a-4c26-96cf-78ac056d1b4c',
    'CAMISA SAO PAULO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:21:28.717Z
  ],
  driverError: Error: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c76afb79-c11a-4c26-96cf-78ac056d1b4c',
    'CAMISA SAO PAULO',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:21:28.717Z
  ],
  driverError: Error: Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c76afb79-c11a-4c26-96cf-78ac056d1b4c' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c76afb79-c11a-4c26-96cf-78ac056d1b4c', 'CAMISA SAO PAULO', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:21:28.717', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 86ad4c95-ce6c-41b9-a340-f487f2e9b8e6: QueryFailedError: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df',
    'CAMISA CORINTHIANS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:22:13.480Z
  ],
  driverError: Error: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df',
    'CAMISA CORINTHIANS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:22:13.480Z
  ],
  driverError: Error: Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('53a5d02e-ec03-4a47-bbc3-8fb8c3ed66df', 'CAMISA CORINTHIANS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:22:13.480', DEFAULT, DEFAULT)"
}
Erro ao aplicar log ab0da363-1cc6-49fd-99d3-7fd7541513dd: QueryFailedError: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'aa706f0d-1f7f-4221-acdc-6250557b1caf',
    'CAMISA SANTOS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:23:51.644Z
  ],
  driverError: Error: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'aa706f0d-1f7f-4221-acdc-6250557b1caf',
    'CAMISA SANTOS',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-12T02:23:51.644Z
  ],
  driverError: Error: Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'aa706f0d-1f7f-4221-acdc-6250557b1caf' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('aa706f0d-1f7f-4221-acdc-6250557b1caf', 'CAMISA SANTOS', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-12 02:23:51.644', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e166b774-d100-4f04-b294-6a6b8c57cc09: QueryFailedError: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '312339e1-9539-4638-8a79-f0bdaa87e44f',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.746Z
  ],
  driverError: Error: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '312339e1-9539-4638-8a79-f0bdaa87e44f',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.746Z
  ],
  driverError: Error: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f851f748-b258-4464-ac24-a2a1c9b48093: QueryFailedError: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '682ff3ff-bbce-4456-9029-7e8d77fd97d5',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.766Z
  ],
  driverError: Error: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '682ff3ff-bbce-4456-9029-7e8d77fd97d5',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.766Z
  ],
  driverError: Error: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1601d3b5-2511-4581-b973-9842a77ab4b2: QueryFailedError: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0a2d581c-290e-411f-bac8-b50f21751690',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.785Z
  ],
  driverError: Error: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0a2d581c-290e-411f-bac8-b50f21751690',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.785Z
  ],
  driverError: Error: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7465d86c-864a-4f46-84b7-b298c23158dd: QueryFailedError: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '115083ea-7862-418b-bba2-75b6492c8160',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.800Z
  ],
  driverError: Error: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '115083ea-7862-418b-bba2-75b6492c8160',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.800Z
  ],
  driverError: Error: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 424913db-1c7e-4f38-b2aa-4489a529b290: QueryFailedError: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '671032bd-ba30-4d76-9aa9-8632a7196729',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.815Z
  ],
  driverError: Error: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '671032bd-ba30-4d76-9aa9-8632a7196729',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.815Z
  ],
  driverError: Error: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1a591e9a-5cac-48d8-9bd5-680db501dbb6: QueryFailedError: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '358d48f6-22f8-4306-b245-57adc790a829',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.830Z
  ],
  driverError: Error: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '358d48f6-22f8-4306-b245-57adc790a829',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.830Z
  ],
  driverError: Error: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 58e76b24-9a35-48a3-86b3-7825cc5dab14: QueryFailedError: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'be7575ec-8fdc-4da0-b5df-0c9954a570d5',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.845Z
  ],
  driverError: Error: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'be7575ec-8fdc-4da0-b5df-0c9954a570d5',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.845Z
  ],
  driverError: Error: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1002ccb9-02db-4161-8a5a-0a7afcb6838e: QueryFailedError: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a73a6e3f-8632-4458-8df5-5b16247a37cc',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.861Z
  ],
  driverError: Error: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a73a6e3f-8632-4458-8df5-5b16247a37cc',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.861Z
  ],
  driverError: Error: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 033fcb0f-17a6-42f0-92b6-ed45023de6a8: QueryFailedError: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f92faafe-5ca4-471a-943c-59d59a9b42a9',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.877Z
  ],
  driverError: Error: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f92faafe-5ca4-471a-943c-59d59a9b42a9',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.877Z
  ],
  driverError: Error: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 95c385b4-245b-4bf4-9089-f0407b5fdb52: QueryFailedError: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a0d585fd-3faa-4d98-b833-c0f6ef15f102',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.892Z
  ],
  driverError: Error: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a0d585fd-3faa-4d98-b833-c0f6ef15f102',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.892Z
  ],
  driverError: Error: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
}
Erro ao aplicar log cf405a32-1f8e-4600-9a35-08df3363a086: QueryFailedError: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bb7b28be-243a-405b-ae24-06c3732d91d0',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.919Z
  ],
  driverError: Error: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bb7b28be-243a-405b-ae24-06c3732d91d0',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.919Z
  ],
  driverError: Error: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 0926c1ce-00e6-402d-a63c-482850df89a2: QueryFailedError: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3ea818a6-52fd-4ced-a0f6-70be72824ee4',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.934Z
  ],
  driverError: Error: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3ea818a6-52fd-4ced-a0f6-70be72824ee4',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.934Z
  ],
  driverError: Error: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9e827e56-5c69-4783-9d72-a4ace6ad509d: QueryFailedError: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.947Z
  ],
  driverError: Error: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.947Z
  ],
  driverError: Error: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
}
Erro ao aplicar log acffb02c-2878-4316-ac5b-94bfc99320e9: QueryFailedError: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e5140f73-6a7e-4689-9bdb-5b7c05f36945',
    'bd602a12-79d1-48c5-8c96-703aeedcb9e9',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.304Z
  ],
  driverError: Error: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e5140f73-6a7e-4689-9bdb-5b7c05f36945',
    'bd602a12-79d1-48c5-8c96-703aeedcb9e9',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.304Z
  ],
  driverError: Error: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
}
Erro ao aplicar log db422d9c-cd3c-44b1-bc53-706cad6bb4d8: QueryFailedError: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a95f8c0b-3fbe-4f1c-868d-da9654574ae9',
    'f0c86d57-80b5-4f99-8e50-b201cbc3736e',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.537Z
  ],
  driverError: Error: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a95f8c0b-3fbe-4f1c-868d-da9654574ae9',
    'f0c86d57-80b5-4f99-8e50-b201cbc3736e',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.537Z
  ],
  driverError: Error: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9b0b2c76-693f-460f-bafb-a9bc7ebd7727: QueryFailedError: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b0055747-e08d-46dd-bbeb-dda4d8ff4983',
    'f8d69907-45ab-48f0-9489-696be5785ac8',
    900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.568Z
  ],
  driverError: Error: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b0055747-e08d-46dd-bbeb-dda4d8ff4983',
    'f8d69907-45ab-48f0-9489-696be5785ac8',
    900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.568Z
  ],
  driverError: Error: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3dba5094-9e4b-4e7f-9c7f-d86ee37f215e: QueryFailedError: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9548b04f-0160-4889-a74d-c09b222e70cd',
    'c79c46b3-17fb-4f40-b8cf-a8bb380df445',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.591Z
  ],
  driverError: Error: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9548b04f-0160-4889-a74d-c09b222e70cd',
    'c79c46b3-17fb-4f40-b8cf-a8bb380df445',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.591Z
  ],
  driverError: Error: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
}
Erro ao aplicar log be4a275d-e939-45a7-93c4-2b83a819983c: QueryFailedError: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ad824f2a-dace-4210-9cbf-50fc2a330694',
    '0e8ca5dd-6d46-4372-b036-bc3150545c79',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.615Z
  ],
  driverError: Error: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ad824f2a-dace-4210-9cbf-50fc2a330694',
    '0e8ca5dd-6d46-4372-b036-bc3150545c79',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.615Z
  ],
  driverError: Error: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f4e606f1-5b68-478e-bd2c-f4b16e179fe0: QueryFailedError: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6',
    'fefc9834-574e-4e6c-87ad-80945116f258',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.636Z
  ],
  driverError: Error: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6',
    'fefc9834-574e-4e6c-87ad-80945116f258',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.636Z
  ],
  driverError: Error: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e072cc8a-1db1-4dda-99f8-8dfc69cad7d6: QueryFailedError: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29e2624-90eb-4488-b60c-7549da2fe5b4',
    '2ea73171-a24d-4d52-a3d8-dce6779617ba',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.657Z
  ],
  driverError: Error: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29e2624-90eb-4488-b60c-7549da2fe5b4',
    '2ea73171-a24d-4d52-a3d8-dce6779617ba',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.657Z
  ],
  driverError: Error: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2c51fa84-1eb6-461a-8baf-76e0eed199d8: QueryFailedError: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '44248b01-97f6-4020-8868-2c823fb663ca',
    'e58e7432-26db-41cd-991c-fc9ffd858175',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.678Z
  ],
  driverError: Error: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '44248b01-97f6-4020-8868-2c823fb663ca',
    'e58e7432-26db-41cd-991c-fc9ffd858175',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.678Z
  ],
  driverError: Error: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
}
Erro ao aplicar log eda066d6-9585-46eb-8314-bb32778aa6e0: QueryFailedError: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e282c11b-c890-4f05-8e1b-496d168f3c82',
    '383a84f2-c97d-4ab3-b5a5-2cb26245106c',
    750,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.700Z
  ],
  driverError: Error: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e282c11b-c890-4f05-8e1b-496d168f3c82',
    '383a84f2-c97d-4ab3-b5a5-2cb26245106c',
    750,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.700Z
  ],
  driverError: Error: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4174ab03-8dd4-4800-8873-cfae44332293: QueryFailedError: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '816e1c1d-112f-4c80-9e4b-d84c316dd496',
    'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.721Z
  ],
  driverError: Error: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '816e1c1d-112f-4c80-9e4b-d84c316dd496',
    'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.721Z
  ],
  driverError: Error: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 77f4f675-6378-4513-8da4-7c246abf9bbe: QueryFailedError: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '87616c41-6f07-4cd0-bf61-824aeb6b4cbf',
    '41595cf3-c59a-4a8d-b654-addfa7ba7fa2',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.743Z
  ],
  driverError: Error: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '87616c41-6f07-4cd0-bf61-824aeb6b4cbf',
    '41595cf3-c59a-4a8d-b654-addfa7ba7fa2',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.743Z
  ],
  driverError: Error: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3076fe8e-cb30-4d6a-b6ac-8c762776577f: QueryFailedError: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'cb28ec47-41ae-4f49-b040-495a27ef278e',
    '744ebaea-4ac5-44ab-aa5d-4426cd99d45d',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.763Z
  ],
  driverError: Error: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'cb28ec47-41ae-4f49-b040-495a27ef278e',
    '744ebaea-4ac5-44ab-aa5d-4426cd99d45d',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.763Z
  ],
  driverError: Error: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 542776e2-c157-4bbe-baf7-252ec7cb6acf: QueryFailedError: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a',
    '29b36ec6-ef05-405f-99ec-0390986ebdc7',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.786Z
  ],
  driverError: Error: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a',
    '29b36ec6-ef05-405f-99ec-0390986ebdc7',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.786Z
  ],
  driverError: Error: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f166d2f7-c267-43e8-aeac-f3373c540294: QueryFailedError: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b25b6094-48f6-47b3-baf5-3bdaed543fc3',
    '5aa85d31-491e-4105-89f5-b5cb2f552b79',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.810Z
  ],
  driverError: Error: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b25b6094-48f6-47b3-baf5-3bdaed543fc3',
    '5aa85d31-491e-4105-89f5-b5cb2f552b79',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.810Z
  ],
  driverError: Error: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6190a161-2b0f-4b61-bbba-c7fe2a250947: QueryFailedError: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '84a6d22b-23c4-4711-831e-dc8184baeb51',
    '995181e9-8852-4275-917e-6bf6d0f8bb06',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.833Z
  ],
  driverError: Error: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '84a6d22b-23c4-4711-831e-dc8184baeb51',
    '995181e9-8852-4275-917e-6bf6d0f8bb06',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.833Z
  ],
  driverError: Error: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
}
Erro ao aplicar log bda05aa1-2865-4ca8-9e0b-1a5ebeb3cf66: QueryFailedError: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4889aeba-8979-4dd3-a173-1a191c437d25',
    '55c7f7be-1a03-4d16-97e0-79e8b30bd70a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.856Z
  ],
  driverError: Error: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4889aeba-8979-4dd3-a173-1a191c437d25',
    '55c7f7be-1a03-4d16-97e0-79e8b30bd70a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.856Z
  ],
  driverError: Error: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 04cb5ac8-1a47-4c81-8c6c-b81106f45718: QueryFailedError: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '978460d2-16e9-4d7c-8cb3-9f9e90299dd4',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.881Z
  ],
  driverError: Error: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '978460d2-16e9-4d7c-8cb3-9f9e90299dd4',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.881Z
  ],
  driverError: Error: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 12d40195-c1d5-4a7d-80e2-c48351c89392: QueryFailedError: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '255f8c05-bb8f-4c6b-9105-fea727602c8d',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.903Z
  ],
  driverError: Error: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '255f8c05-bb8f-4c6b-9105-fea727602c8d',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.903Z
  ],
  driverError: Error: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3ed2067b-0691-444d-aad6-522d7550d906: QueryFailedError: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9c253a06-207e-4b46-989b-5f2cac213574',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.924Z
  ],
  driverError: Error: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9c253a06-207e-4b46-989b-5f2cac213574',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.924Z
  ],
  driverError: Error: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f4b0d8db-05f6-4d86-8c56-73fe8fdb6f4f: QueryFailedError: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd074be47-7059-42a6-a0f6-22c8fa69db19',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.944Z
  ],
  driverError: Error: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd074be47-7059-42a6-a0f6-22c8fa69db19',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.944Z
  ],
  driverError: Error: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 81aa0f85-7679-4b15-9e95-84b16d26f872: QueryFailedError: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.965Z
  ],
  driverError: Error: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.965Z
  ],
  driverError: Error: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 5e16f22d-1787-42ed-a376-1c6347808910: QueryFailedError: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '09c2a888-594e-4d02-b55c-12146520ec2a',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.985Z
  ],
  driverError: Error: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '09c2a888-594e-4d02-b55c-12146520ec2a',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.985Z
  ],
  driverError: Error: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 847bd788-526e-4d98-9f48-1c23308246a7: QueryFailedError: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.009Z
  ],
  driverError: Error: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.009Z
  ],
  driverError: Error: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
}
Erro ao aplicar log aa495232-d9a0-464b-b4d0-d6aa25fe15be: QueryFailedError: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8c4bcd63-7661-448c-be86-8d12be6c07eb',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.028Z
  ],
  driverError: Error: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8c4bcd63-7661-448c-be86-8d12be6c07eb',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.028Z
  ],
  driverError: Error: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3d23b59f-b185-46ac-a3f6-e856614ff527: QueryFailedError: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b238cd9b-1f22-417a-86e4-eafea38a94a1',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.049Z
  ],
  driverError: Error: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b238cd9b-1f22-417a-86e4-eafea38a94a1',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.049Z
  ],
  driverError: Error: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 50db1f6a-e816-4232-87a8-8b089a1499af: QueryFailedError: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43df6091-282e-47f8-a981-f9c610ee6d88',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.075Z
  ],
  driverError: Error: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43df6091-282e-47f8-a981-f9c610ee6d88',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.075Z
  ],
  driverError: Error: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
}
Erro ao aplicar log a42af96f-740e-46fb-921a-6e11f087ce41: QueryFailedError: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '81a3d75d-252f-4f9e-92c8-11d0324aab11',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.094Z
  ],
  driverError: Error: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '81a3d75d-252f-4f9e-92c8-11d0324aab11',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.094Z
  ],
  driverError: Error: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 54f53670-3340-46df-b4cd-6c0214a48386: QueryFailedError: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b65f4de1-b121-45f5-b2ae-b1cb5a18a413',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.114Z
  ],
  driverError: Error: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b65f4de1-b121-45f5-b2ae-b1cb5a18a413',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.114Z
  ],
  driverError: Error: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 46c52caa-2866-482b-bd40-e06155c976a3: QueryFailedError: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '314dd11e-fa1f-47fd-bffc-456c2b3e57f9',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.134Z
  ],
  driverError: Error: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '314dd11e-fa1f-47fd-bffc-456c2b3e57f9',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.134Z
  ],
  driverError: Error: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e166b774-d100-4f04-b294-6a6b8c57cc09: QueryFailedError: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '312339e1-9539-4638-8a79-f0bdaa87e44f',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.746Z
  ],
  driverError: Error: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '312339e1-9539-4638-8a79-f0bdaa87e44f',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.746Z
  ],
  driverError: Error: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f851f748-b258-4464-ac24-a2a1c9b48093: QueryFailedError: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '682ff3ff-bbce-4456-9029-7e8d77fd97d5',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.766Z
  ],
  driverError: Error: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '682ff3ff-bbce-4456-9029-7e8d77fd97d5',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.766Z
  ],
  driverError: Error: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1601d3b5-2511-4581-b973-9842a77ab4b2: QueryFailedError: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0a2d581c-290e-411f-bac8-b50f21751690',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.785Z
  ],
  driverError: Error: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0a2d581c-290e-411f-bac8-b50f21751690',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.785Z
  ],
  driverError: Error: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7465d86c-864a-4f46-84b7-b298c23158dd: QueryFailedError: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '115083ea-7862-418b-bba2-75b6492c8160',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.800Z
  ],
  driverError: Error: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '115083ea-7862-418b-bba2-75b6492c8160',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.800Z
  ],
  driverError: Error: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 424913db-1c7e-4f38-b2aa-4489a529b290: QueryFailedError: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '671032bd-ba30-4d76-9aa9-8632a7196729',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.815Z
  ],
  driverError: Error: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '671032bd-ba30-4d76-9aa9-8632a7196729',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.815Z
  ],
  driverError: Error: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1a591e9a-5cac-48d8-9bd5-680db501dbb6: QueryFailedError: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '358d48f6-22f8-4306-b245-57adc790a829',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.830Z
  ],
  driverError: Error: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '358d48f6-22f8-4306-b245-57adc790a829',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.830Z
  ],
  driverError: Error: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 58e76b24-9a35-48a3-86b3-7825cc5dab14: QueryFailedError: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'be7575ec-8fdc-4da0-b5df-0c9954a570d5',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.845Z
  ],
  driverError: Error: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'be7575ec-8fdc-4da0-b5df-0c9954a570d5',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.845Z
  ],
  driverError: Error: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1002ccb9-02db-4161-8a5a-0a7afcb6838e: QueryFailedError: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a73a6e3f-8632-4458-8df5-5b16247a37cc',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.861Z
  ],
  driverError: Error: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a73a6e3f-8632-4458-8df5-5b16247a37cc',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.861Z
  ],
  driverError: Error: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 033fcb0f-17a6-42f0-92b6-ed45023de6a8: QueryFailedError: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f92faafe-5ca4-471a-943c-59d59a9b42a9',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.877Z
  ],
  driverError: Error: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f92faafe-5ca4-471a-943c-59d59a9b42a9',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.877Z
  ],
  driverError: Error: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 95c385b4-245b-4bf4-9089-f0407b5fdb52: QueryFailedError: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a0d585fd-3faa-4d98-b833-c0f6ef15f102',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.892Z
  ],
  driverError: Error: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a0d585fd-3faa-4d98-b833-c0f6ef15f102',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.892Z
  ],
  driverError: Error: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
}
Erro ao aplicar log cf405a32-1f8e-4600-9a35-08df3363a086: QueryFailedError: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bb7b28be-243a-405b-ae24-06c3732d91d0',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.919Z
  ],
  driverError: Error: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bb7b28be-243a-405b-ae24-06c3732d91d0',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.919Z
  ],
  driverError: Error: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 0926c1ce-00e6-402d-a63c-482850df89a2: QueryFailedError: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3ea818a6-52fd-4ced-a0f6-70be72824ee4',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.934Z
  ],
  driverError: Error: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3ea818a6-52fd-4ced-a0f6-70be72824ee4',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.934Z
  ],
  driverError: Error: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9e827e56-5c69-4783-9d72-a4ace6ad509d: QueryFailedError: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.947Z
  ],
  driverError: Error: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.947Z
  ],
  driverError: Error: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
}
Erro ao aplicar log c1dae73c-5627-45ce-9bb3-9f41dd1b0b6f: QueryFailedError: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '735fc7e9-2c8d-4250-93f6-d1c8c19f6417',
    '5c6382b8-d35f-427e-802b-564494293cfe',
    70,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T23:48:59.865Z
  ],
  driverError: Error: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '735fc7e9-2c8d-4250-93f6-d1c8c19f6417',
    '5c6382b8-d35f-427e-802b-564494293cfe',
    70,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T23:48:59.865Z
  ],
  driverError: Error: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 5a409dc3-05d9-44f6-bef3-e31357188e14: QueryFailedError: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8',
    '4661842a-776e-4cb7-9384-81248356d2f7',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-14T00:15:57.822Z
  ],
  driverError: Error: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8',
    '4661842a-776e-4cb7-9384-81248356d2f7',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-14T00:15:57.822Z
  ],
  driverError: Error: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7cc24cb2-1080-4ad8-9923-87c4d8e7ce2c: QueryFailedError: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3',
    '688d9f85-9889-4a46-bd66-5ed06780ab7e',
    1500,
    'Pix',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-16T23:52:45.422Z
  ],
  driverError: Error: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3',
    '688d9f85-9889-4a46-bd66-5ed06780ab7e',
    1500,
    'Pix',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-16T23:52:45.422Z
  ],
  driverError: Error: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
}
Erro ao aplicar log acffb02c-2878-4316-ac5b-94bfc99320e9: QueryFailedError: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e5140f73-6a7e-4689-9bdb-5b7c05f36945',
    'bd602a12-79d1-48c5-8c96-703aeedcb9e9',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.304Z
  ],
  driverError: Error: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e5140f73-6a7e-4689-9bdb-5b7c05f36945',
    'bd602a12-79d1-48c5-8c96-703aeedcb9e9',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.304Z
  ],
  driverError: Error: Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e5140f73-6a7e-4689-9bdb-5b7c05f36945' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e5140f73-6a7e-4689-9bdb-5b7c05f36945', 'bd602a12-79d1-48c5-8c96-703aeedcb9e9', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.304', DEFAULT, DEFAULT)"
}
Erro ao aplicar log db422d9c-cd3c-44b1-bc53-706cad6bb4d8: QueryFailedError: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a95f8c0b-3fbe-4f1c-868d-da9654574ae9',
    'f0c86d57-80b5-4f99-8e50-b201cbc3736e',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.537Z
  ],
  driverError: Error: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a95f8c0b-3fbe-4f1c-868d-da9654574ae9',
    'f0c86d57-80b5-4f99-8e50-b201cbc3736e',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.537Z
  ],
  driverError: Error: Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a95f8c0b-3fbe-4f1c-868d-da9654574ae9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a95f8c0b-3fbe-4f1c-868d-da9654574ae9', 'f0c86d57-80b5-4f99-8e50-b201cbc3736e', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.537', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9b0b2c76-693f-460f-bafb-a9bc7ebd7727: QueryFailedError: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b0055747-e08d-46dd-bbeb-dda4d8ff4983',
    'f8d69907-45ab-48f0-9489-696be5785ac8',
    900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.568Z
  ],
  driverError: Error: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b0055747-e08d-46dd-bbeb-dda4d8ff4983',
    'f8d69907-45ab-48f0-9489-696be5785ac8',
    900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.568Z
  ],
  driverError: Error: Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b0055747-e08d-46dd-bbeb-dda4d8ff4983' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b0055747-e08d-46dd-bbeb-dda4d8ff4983', 'f8d69907-45ab-48f0-9489-696be5785ac8', DEFAULT, 900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.568', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3dba5094-9e4b-4e7f-9c7f-d86ee37f215e: QueryFailedError: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9548b04f-0160-4889-a74d-c09b222e70cd',
    'c79c46b3-17fb-4f40-b8cf-a8bb380df445',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.591Z
  ],
  driverError: Error: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9548b04f-0160-4889-a74d-c09b222e70cd',
    'c79c46b3-17fb-4f40-b8cf-a8bb380df445',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.591Z
  ],
  driverError: Error: Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9548b04f-0160-4889-a74d-c09b222e70cd' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9548b04f-0160-4889-a74d-c09b222e70cd', 'c79c46b3-17fb-4f40-b8cf-a8bb380df445', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.591', DEFAULT, DEFAULT)"
}
Erro ao aplicar log be4a275d-e939-45a7-93c4-2b83a819983c: QueryFailedError: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ad824f2a-dace-4210-9cbf-50fc2a330694',
    '0e8ca5dd-6d46-4372-b036-bc3150545c79',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.615Z
  ],
  driverError: Error: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'ad824f2a-dace-4210-9cbf-50fc2a330694',
    '0e8ca5dd-6d46-4372-b036-bc3150545c79',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.615Z
  ],
  driverError: Error: Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'ad824f2a-dace-4210-9cbf-50fc2a330694' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('ad824f2a-dace-4210-9cbf-50fc2a330694', '0e8ca5dd-6d46-4372-b036-bc3150545c79', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.615', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f4e606f1-5b68-478e-bd2c-f4b16e179fe0: QueryFailedError: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6',
    'fefc9834-574e-4e6c-87ad-80945116f258',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.636Z
  ],
  driverError: Error: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6',
    'fefc9834-574e-4e6c-87ad-80945116f258',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.636Z
  ],
  driverError: Error: Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4f4c85ff-af6a-4aee-8cae-b1ad3a21e4d6', 'fefc9834-574e-4e6c-87ad-80945116f258', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.636', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e072cc8a-1db1-4dda-99f8-8dfc69cad7d6: QueryFailedError: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29e2624-90eb-4488-b60c-7549da2fe5b4',
    '2ea73171-a24d-4d52-a3d8-dce6779617ba',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.657Z
  ],
  driverError: Error: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd29e2624-90eb-4488-b60c-7549da2fe5b4',
    '2ea73171-a24d-4d52-a3d8-dce6779617ba',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.657Z
  ],
  driverError: Error: Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd29e2624-90eb-4488-b60c-7549da2fe5b4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d29e2624-90eb-4488-b60c-7549da2fe5b4', '2ea73171-a24d-4d52-a3d8-dce6779617ba', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.657', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 2c51fa84-1eb6-461a-8baf-76e0eed199d8: QueryFailedError: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '44248b01-97f6-4020-8868-2c823fb663ca',
    'e58e7432-26db-41cd-991c-fc9ffd858175',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.678Z
  ],
  driverError: Error: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '44248b01-97f6-4020-8868-2c823fb663ca',
    'e58e7432-26db-41cd-991c-fc9ffd858175',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.678Z
  ],
  driverError: Error: Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '44248b01-97f6-4020-8868-2c823fb663ca' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('44248b01-97f6-4020-8868-2c823fb663ca', 'e58e7432-26db-41cd-991c-fc9ffd858175', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.678', DEFAULT, DEFAULT)"
}
Erro ao aplicar log eda066d6-9585-46eb-8314-bb32778aa6e0: QueryFailedError: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e282c11b-c890-4f05-8e1b-496d168f3c82',
    '383a84f2-c97d-4ab3-b5a5-2cb26245106c',
    750,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.700Z
  ],
  driverError: Error: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e282c11b-c890-4f05-8e1b-496d168f3c82',
    '383a84f2-c97d-4ab3-b5a5-2cb26245106c',
    750,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.700Z
  ],
  driverError: Error: Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e282c11b-c890-4f05-8e1b-496d168f3c82' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e282c11b-c890-4f05-8e1b-496d168f3c82', '383a84f2-c97d-4ab3-b5a5-2cb26245106c', DEFAULT, 750, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.700', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 4174ab03-8dd4-4800-8873-cfae44332293: QueryFailedError: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '816e1c1d-112f-4c80-9e4b-d84c316dd496',
    'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.721Z
  ],
  driverError: Error: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '816e1c1d-112f-4c80-9e4b-d84c316dd496',
    'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b',
    500,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.721Z
  ],
  driverError: Error: Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '816e1c1d-112f-4c80-9e4b-d84c316dd496' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('816e1c1d-112f-4c80-9e4b-d84c316dd496', 'd578caa3-a2b8-4fc8-a1e2-abc0f8b9260b', DEFAULT, 500, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.721', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 77f4f675-6378-4513-8da4-7c246abf9bbe: QueryFailedError: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '87616c41-6f07-4cd0-bf61-824aeb6b4cbf',
    '41595cf3-c59a-4a8d-b654-addfa7ba7fa2',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.743Z
  ],
  driverError: Error: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '87616c41-6f07-4cd0-bf61-824aeb6b4cbf',
    '41595cf3-c59a-4a8d-b654-addfa7ba7fa2',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.743Z
  ],
  driverError: Error: Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '87616c41-6f07-4cd0-bf61-824aeb6b4cbf' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('87616c41-6f07-4cd0-bf61-824aeb6b4cbf', '41595cf3-c59a-4a8d-b654-addfa7ba7fa2', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.743', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3076fe8e-cb30-4d6a-b6ac-8c762776577f: QueryFailedError: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'cb28ec47-41ae-4f49-b040-495a27ef278e',
    '744ebaea-4ac5-44ab-aa5d-4426cd99d45d',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.763Z
  ],
  driverError: Error: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'cb28ec47-41ae-4f49-b040-495a27ef278e',
    '744ebaea-4ac5-44ab-aa5d-4426cd99d45d',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.763Z
  ],
  driverError: Error: Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'cb28ec47-41ae-4f49-b040-495a27ef278e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('cb28ec47-41ae-4f49-b040-495a27ef278e', '744ebaea-4ac5-44ab-aa5d-4426cd99d45d', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.763', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 542776e2-c157-4bbe-baf7-252ec7cb6acf: QueryFailedError: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a',
    '29b36ec6-ef05-405f-99ec-0390986ebdc7',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.786Z
  ],
  driverError: Error: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a',
    '29b36ec6-ef05-405f-99ec-0390986ebdc7',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.786Z
  ],
  driverError: Error: Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd0dbdeaa-c1ee-4679-93c1-db59b1d2296a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d0dbdeaa-c1ee-4679-93c1-db59b1d2296a', '29b36ec6-ef05-405f-99ec-0390986ebdc7', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.786', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f166d2f7-c267-43e8-aeac-f3373c540294: QueryFailedError: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b25b6094-48f6-47b3-baf5-3bdaed543fc3',
    '5aa85d31-491e-4105-89f5-b5cb2f552b79',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.810Z
  ],
  driverError: Error: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b25b6094-48f6-47b3-baf5-3bdaed543fc3',
    '5aa85d31-491e-4105-89f5-b5cb2f552b79',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.810Z
  ],
  driverError: Error: Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b25b6094-48f6-47b3-baf5-3bdaed543fc3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b25b6094-48f6-47b3-baf5-3bdaed543fc3', '5aa85d31-491e-4105-89f5-b5cb2f552b79', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.810', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6190a161-2b0f-4b61-bbba-c7fe2a250947: QueryFailedError: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '84a6d22b-23c4-4711-831e-dc8184baeb51',
    '995181e9-8852-4275-917e-6bf6d0f8bb06',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.833Z
  ],
  driverError: Error: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '84a6d22b-23c4-4711-831e-dc8184baeb51',
    '995181e9-8852-4275-917e-6bf6d0f8bb06',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.833Z
  ],
  driverError: Error: Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '84a6d22b-23c4-4711-831e-dc8184baeb51' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('84a6d22b-23c4-4711-831e-dc8184baeb51', '995181e9-8852-4275-917e-6bf6d0f8bb06', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.833', DEFAULT, DEFAULT)"
}
Erro ao aplicar log bda05aa1-2865-4ca8-9e0b-1a5ebeb3cf66: QueryFailedError: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4889aeba-8979-4dd3-a173-1a191c437d25',
    '55c7f7be-1a03-4d16-97e0-79e8b30bd70a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.856Z
  ],
  driverError: Error: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '4889aeba-8979-4dd3-a173-1a191c437d25',
    '55c7f7be-1a03-4d16-97e0-79e8b30bd70a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.856Z
  ],
  driverError: Error: Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '4889aeba-8979-4dd3-a173-1a191c437d25' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('4889aeba-8979-4dd3-a173-1a191c437d25', '55c7f7be-1a03-4d16-97e0-79e8b30bd70a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.856', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 04cb5ac8-1a47-4c81-8c6c-b81106f45718: QueryFailedError: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '978460d2-16e9-4d7c-8cb3-9f9e90299dd4',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.881Z
  ],
  driverError: Error: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '978460d2-16e9-4d7c-8cb3-9f9e90299dd4',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.881Z
  ],
  driverError: Error: Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '978460d2-16e9-4d7c-8cb3-9f9e90299dd4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('978460d2-16e9-4d7c-8cb3-9f9e90299dd4', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.881', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 12d40195-c1d5-4a7d-80e2-c48351c89392: QueryFailedError: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '255f8c05-bb8f-4c6b-9105-fea727602c8d',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.903Z
  ],
  driverError: Error: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '255f8c05-bb8f-4c6b-9105-fea727602c8d',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.903Z
  ],
  driverError: Error: Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '255f8c05-bb8f-4c6b-9105-fea727602c8d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('255f8c05-bb8f-4c6b-9105-fea727602c8d', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.903', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3ed2067b-0691-444d-aad6-522d7550d906: QueryFailedError: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9c253a06-207e-4b46-989b-5f2cac213574',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.924Z
  ],
  driverError: Error: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '9c253a06-207e-4b46-989b-5f2cac213574',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.924Z
  ],
  driverError: Error: Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '9c253a06-207e-4b46-989b-5f2cac213574' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('9c253a06-207e-4b46-989b-5f2cac213574', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.924', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f4b0d8db-05f6-4d86-8c56-73fe8fdb6f4f: QueryFailedError: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd074be47-7059-42a6-a0f6-22c8fa69db19',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.944Z
  ],
  driverError: Error: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd074be47-7059-42a6-a0f6-22c8fa69db19',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.944Z
  ],
  driverError: Error: Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd074be47-7059-42a6-a0f6-22c8fa69db19' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d074be47-7059-42a6-a0f6-22c8fa69db19', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.944', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 81aa0f85-7679-4b15-9e95-84b16d26f872: QueryFailedError: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.965Z
  ],
  driverError: Error: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.965Z
  ],
  driverError: Error: Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a64f7ee1-9e5c-4ef2-a59a-79255a2388fb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a64f7ee1-9e5c-4ef2-a59a-79255a2388fb', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.965', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 5e16f22d-1787-42ed-a376-1c6347808910: QueryFailedError: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '09c2a888-594e-4d02-b55c-12146520ec2a',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.985Z
  ],
  driverError: Error: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '09c2a888-594e-4d02-b55c-12146520ec2a',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:27.985Z
  ],
  driverError: Error: Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '09c2a888-594e-4d02-b55c-12146520ec2a' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('09c2a888-594e-4d02-b55c-12146520ec2a', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:27.985', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 847bd788-526e-4d98-9f48-1c23308246a7: QueryFailedError: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.009Z
  ],
  driverError: Error: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.009Z
  ],
  driverError: Error: Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2aa59ed8-1f07-4517-b3c2-d5ddfec12f76' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2aa59ed8-1f07-4517-b3c2-d5ddfec12f76', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.009', DEFAULT, DEFAULT)"
}
Erro ao aplicar log aa495232-d9a0-464b-b4d0-d6aa25fe15be: QueryFailedError: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8c4bcd63-7661-448c-be86-8d12be6c07eb',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.028Z
  ],
  driverError: Error: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '8c4bcd63-7661-448c-be86-8d12be6c07eb',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.028Z
  ],
  driverError: Error: Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '8c4bcd63-7661-448c-be86-8d12be6c07eb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('8c4bcd63-7661-448c-be86-8d12be6c07eb', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.028', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 3d23b59f-b185-46ac-a3f6-e856614ff527: QueryFailedError: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b238cd9b-1f22-417a-86e4-eafea38a94a1',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.049Z
  ],
  driverError: Error: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b238cd9b-1f22-417a-86e4-eafea38a94a1',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.049Z
  ],
  driverError: Error: Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b238cd9b-1f22-417a-86e4-eafea38a94a1' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b238cd9b-1f22-417a-86e4-eafea38a94a1', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.049', DEFAULT, DEFAULT)"
}
Erro ao aplicar log c1dae73c-5627-45ce-9bb3-9f41dd1b0b6f: QueryFailedError: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '735fc7e9-2c8d-4250-93f6-d1c8c19f6417',
    '5c6382b8-d35f-427e-802b-564494293cfe',
    70,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T23:48:59.865Z
  ],
  driverError: Error: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '735fc7e9-2c8d-4250-93f6-d1c8c19f6417',
    '5c6382b8-d35f-427e-802b-564494293cfe',
    70,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T23:48:59.865Z
  ],
  driverError: Error: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 50db1f6a-e816-4232-87a8-8b089a1499af: QueryFailedError: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43df6091-282e-47f8-a981-f9c610ee6d88',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.075Z
  ],
  driverError: Error: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '43df6091-282e-47f8-a981-f9c610ee6d88',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.075Z
  ],
  driverError: Error: Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '43df6091-282e-47f8-a981-f9c610ee6d88' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('43df6091-282e-47f8-a981-f9c610ee6d88', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.075', DEFAULT, DEFAULT)"
}
Erro ao aplicar log a42af96f-740e-46fb-921a-6e11f087ce41: QueryFailedError: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '81a3d75d-252f-4f9e-92c8-11d0324aab11',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.094Z
  ],
  driverError: Error: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '81a3d75d-252f-4f9e-92c8-11d0324aab11',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.094Z
  ],
  driverError: Error: Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '81a3d75d-252f-4f9e-92c8-11d0324aab11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('81a3d75d-252f-4f9e-92c8-11d0324aab11', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.094', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 54f53670-3340-46df-b4cd-6c0214a48386: QueryFailedError: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b65f4de1-b121-45f5-b2ae-b1cb5a18a413',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.114Z
  ],
  driverError: Error: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'b65f4de1-b121-45f5-b2ae-b1cb5a18a413',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.114Z
  ],
  driverError: Error: Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'b65f4de1-b121-45f5-b2ae-b1cb5a18a413' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('b65f4de1-b121-45f5-b2ae-b1cb5a18a413', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.114', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 46c52caa-2866-482b-bd40-e06155c976a3: QueryFailedError: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '314dd11e-fa1f-47fd-bffc-456c2b3e57f9',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.134Z
  ],
  driverError: Error: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '314dd11e-fa1f-47fd-bffc-456c2b3e57f9',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:46:28.134Z
  ],
  driverError: Error: Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '314dd11e-fa1f-47fd-bffc-456c2b3e57f9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('314dd11e-fa1f-47fd-bffc-456c2b3e57f9', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:46:28.134', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e166b774-d100-4f04-b294-6a6b8c57cc09: QueryFailedError: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '312339e1-9539-4638-8a79-f0bdaa87e44f',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.746Z
  ],
  driverError: Error: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '312339e1-9539-4638-8a79-f0bdaa87e44f',
    '003a81b4-8467-4c81-9795-b4e276955c48',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.746Z
  ],
  driverError: Error: Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '312339e1-9539-4638-8a79-f0bdaa87e44f' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('312339e1-9539-4638-8a79-f0bdaa87e44f', '003a81b4-8467-4c81-9795-b4e276955c48', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.746', DEFAULT, DEFAULT)"
}
Erro ao aplicar log f851f748-b258-4464-ac24-a2a1c9b48093: QueryFailedError: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '682ff3ff-bbce-4456-9029-7e8d77fd97d5',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.766Z
  ],
  driverError: Error: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '682ff3ff-bbce-4456-9029-7e8d77fd97d5',
    '3029ff13-884a-44c9-b310-213dca6d8f55',
    1000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.766Z
  ],
  driverError: Error: Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '682ff3ff-bbce-4456-9029-7e8d77fd97d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('682ff3ff-bbce-4456-9029-7e8d77fd97d5', '3029ff13-884a-44c9-b310-213dca6d8f55', DEFAULT, 1000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.766', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 5a409dc3-05d9-44f6-bef3-e31357188e14: QueryFailedError: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8',
    '4661842a-776e-4cb7-9384-81248356d2f7',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-14T00:15:57.822Z
  ],
  driverError: Error: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8',
    '4661842a-776e-4cb7-9384-81248356d2f7',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-14T00:15:57.822Z
  ],
  driverError: Error: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7cc24cb2-1080-4ad8-9923-87c4d8e7ce2c: QueryFailedError: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3',
    '688d9f85-9889-4a46-bd66-5ed06780ab7e',
    1500,
    'Pix',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-16T23:52:45.422Z
  ],
  driverError: Error: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3',
    '688d9f85-9889-4a46-bd66-5ed06780ab7e',
    1500,
    'Pix',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-16T23:52:45.422Z
  ],
  driverError: Error: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1601d3b5-2511-4581-b973-9842a77ab4b2: QueryFailedError: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0a2d581c-290e-411f-bac8-b50f21751690',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.785Z
  ],
  driverError: Error: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '0a2d581c-290e-411f-bac8-b50f21751690',
    'e3ce237e-8c55-483a-a291-922871b9bd6e',
    650,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.785Z
  ],
  driverError: Error: Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '0a2d581c-290e-411f-bac8-b50f21751690' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('0a2d581c-290e-411f-bac8-b50f21751690', 'e3ce237e-8c55-483a-a291-922871b9bd6e', DEFAULT, 650, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.785', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7465d86c-864a-4f46-84b7-b298c23158dd: QueryFailedError: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '115083ea-7862-418b-bba2-75b6492c8160',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.800Z
  ],
  driverError: Error: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '115083ea-7862-418b-bba2-75b6492c8160',
    '172e0aea-c579-4647-a4cd-211e1799e157',
    400,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.800Z
  ],
  driverError: Error: Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '115083ea-7862-418b-bba2-75b6492c8160' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('115083ea-7862-418b-bba2-75b6492c8160', '172e0aea-c579-4647-a4cd-211e1799e157', DEFAULT, 400, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.800', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 424913db-1c7e-4f38-b2aa-4489a529b290: QueryFailedError: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '671032bd-ba30-4d76-9aa9-8632a7196729',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.815Z
  ],
  driverError: Error: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '671032bd-ba30-4d76-9aa9-8632a7196729',
    '77215ea2-2f12-478e-941f-0af718e30baf',
    550,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.815Z
  ],
  driverError: Error: Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '671032bd-ba30-4d76-9aa9-8632a7196729' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('671032bd-ba30-4d76-9aa9-8632a7196729', '77215ea2-2f12-478e-941f-0af718e30baf', DEFAULT, 550, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.815', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1a591e9a-5cac-48d8-9bd5-680db501dbb6: QueryFailedError: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '358d48f6-22f8-4306-b245-57adc790a829',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.830Z
  ],
  driverError: Error: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '358d48f6-22f8-4306-b245-57adc790a829',
    '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.830Z
  ],
  driverError: Error: Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '358d48f6-22f8-4306-b245-57adc790a829' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('358d48f6-22f8-4306-b245-57adc790a829', '3e3bf1ac-4b37-4a65-bd9d-3ba99beaafa1', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.830', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 58e76b24-9a35-48a3-86b3-7825cc5dab14: QueryFailedError: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'be7575ec-8fdc-4da0-b5df-0c9954a570d5',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.845Z
  ],
  driverError: Error: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'be7575ec-8fdc-4da0-b5df-0c9954a570d5',
    '6006936b-887a-4c2e-8309-4fa040d411e6',
    1100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.845Z
  ],
  driverError: Error: Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'be7575ec-8fdc-4da0-b5df-0c9954a570d5' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('be7575ec-8fdc-4da0-b5df-0c9954a570d5', '6006936b-887a-4c2e-8309-4fa040d411e6', DEFAULT, 1100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.845', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 1002ccb9-02db-4161-8a5a-0a7afcb6838e: QueryFailedError: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a73a6e3f-8632-4458-8df5-5b16247a37cc',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.861Z
  ],
  driverError: Error: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a73a6e3f-8632-4458-8df5-5b16247a37cc',
    '073e32b9-1a57-4b9c-915e-26bf972e063c',
    300,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.861Z
  ],
  driverError: Error: Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a73a6e3f-8632-4458-8df5-5b16247a37cc' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a73a6e3f-8632-4458-8df5-5b16247a37cc', '073e32b9-1a57-4b9c-915e-26bf972e063c', DEFAULT, 300, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.861', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 033fcb0f-17a6-42f0-92b6-ed45023de6a8: QueryFailedError: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f92faafe-5ca4-471a-943c-59d59a9b42a9',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.877Z
  ],
  driverError: Error: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f92faafe-5ca4-471a-943c-59d59a9b42a9',
    'fa0e4edd-c555-4832-860e-43333585920c',
    250,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.877Z
  ],
  driverError: Error: Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f92faafe-5ca4-471a-943c-59d59a9b42a9' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f92faafe-5ca4-471a-943c-59d59a9b42a9', 'fa0e4edd-c555-4832-860e-43333585920c', DEFAULT, 250, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.877', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 95c385b4-245b-4bf4-9089-f0407b5fdb52: QueryFailedError: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a0d585fd-3faa-4d98-b833-c0f6ef15f102',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.892Z
  ],
  driverError: Error: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a0d585fd-3faa-4d98-b833-c0f6ef15f102',
    '95f53e6b-b1df-4771-af63-f1350b0f1ca7',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.892Z
  ],
  driverError: Error: Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a0d585fd-3faa-4d98-b833-c0f6ef15f102' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a0d585fd-3faa-4d98-b833-c0f6ef15f102', '95f53e6b-b1df-4771-af63-f1350b0f1ca7', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.892', DEFAULT, DEFAULT)"
}
Erro ao aplicar log cf405a32-1f8e-4600-9a35-08df3363a086: QueryFailedError: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bb7b28be-243a-405b-ae24-06c3732d91d0',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.919Z
  ],
  driverError: Error: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bb7b28be-243a-405b-ae24-06c3732d91d0',
    '525d336b-ba58-4d70-bcfa-716d0b90aa1a',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.919Z
  ],
  driverError: Error: Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bb7b28be-243a-405b-ae24-06c3732d91d0' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bb7b28be-243a-405b-ae24-06c3732d91d0', '525d336b-ba58-4d70-bcfa-716d0b90aa1a', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.919', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 0926c1ce-00e6-402d-a63c-482850df89a2: QueryFailedError: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3ea818a6-52fd-4ced-a0f6-70be72824ee4',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.934Z
  ],
  driverError: Error: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '3ea818a6-52fd-4ced-a0f6-70be72824ee4',
    '7306673b-c2f8-4da0-87c5-e82f709c029c',
    600,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.934Z
  ],
  driverError: Error: Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '3ea818a6-52fd-4ced-a0f6-70be72824ee4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('3ea818a6-52fd-4ced-a0f6-70be72824ee4', '7306673b-c2f8-4da0-87c5-e82f709c029c', DEFAULT, 600, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.934', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9e827e56-5c69-4783-9d72-a4ace6ad509d: QueryFailedError: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.947Z
  ],
  driverError: Error: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8',
    '86fc45e0-be69-4e3f-8f21-a7db290418be',
    200,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T22:56:46.947Z
  ],
  driverError: Error: Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'dff79567-4bbd-4a72-9852-3ac5ee6cf4a8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('dff79567-4bbd-4a72-9852-3ac5ee6cf4a8', '86fc45e0-be69-4e3f-8f21-a7db290418be', DEFAULT, 200, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 22:56:46.947', DEFAULT, DEFAULT)"
}
Erro ao aplicar log c1dae73c-5627-45ce-9bb3-9f41dd1b0b6f: QueryFailedError: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '735fc7e9-2c8d-4250-93f6-d1c8c19f6417',
    '5c6382b8-d35f-427e-802b-564494293cfe',
    70,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T23:48:59.865Z
  ],
  driverError: Error: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '735fc7e9-2c8d-4250-93f6-d1c8c19f6417',
    '5c6382b8-d35f-427e-802b-564494293cfe',
    70,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-13T23:48:59.865Z
  ],
  driverError: Error: Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '735fc7e9-2c8d-4250-93f6-d1c8c19f6417' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('735fc7e9-2c8d-4250-93f6-d1c8c19f6417', '5c6382b8-d35f-427e-802b-564494293cfe', DEFAULT, 70, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-13 23:48:59.865', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 5a409dc3-05d9-44f6-bef3-e31357188e14: QueryFailedError: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8',
    '4661842a-776e-4cb7-9384-81248356d2f7',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-14T00:15:57.822Z
  ],
  driverError: Error: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8',
    '4661842a-776e-4cb7-9384-81248356d2f7',
    50,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-14T00:15:57.822Z
  ],
  driverError: Error: Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd54ddeb4-d86f-4dc1-ba41-54ff268ec4d8' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d54ddeb4-d86f-4dc1-ba41-54ff268ec4d8', '4661842a-776e-4cb7-9384-81248356d2f7', DEFAULT, 50, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-14 00:15:57.822', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7cc24cb2-1080-4ad8-9923-87c4d8e7ce2c: QueryFailedError: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3',
    '688d9f85-9889-4a46-bd66-5ed06780ab7e',
    1500,
    'Pix',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-16T23:52:45.422Z
  ],
  driverError: Error: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3',
    '688d9f85-9889-4a46-bd66-5ed06780ab7e',
    1500,
    'Pix',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2025-10-16T23:52:45.422Z
  ],
  driverError: Error: Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('e58ee7cf-b74e-4666-8a10-efd2c0f0ffe3', '688d9f85-9889-4a46-bd66-5ed06780ab7e', DEFAULT, 1500, 'Pix', '6b512930-b785-4ac2-b648-170f739e7220', '2025-10-16 23:52:45.422', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 496a3a18-a376-4ade-9a7a-39d276fce7ee: QueryFailedError: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862',
    'Reuniao',
    '',
    'Nova America',
    2026-08-20T00:00:00.000Z,
    2026-08-30T00:00:00.000Z,
    2026-09-30T00:00:00.000Z,
    'comissao',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:33:48.271Z
  ],
  driverError: Error: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862',
    'Reuniao',
    '',
    'Nova America',
    2026-08-20T00:00:00.000Z,
    2026-08-30T00:00:00.000Z,
    2026-09-30T00:00:00.000Z,
    'comissao',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:33:48.271Z
  ],
  driverError: Error: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9d7654a4-22a2-44b3-ab78-73c761794936: QueryFailedError: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bfdbf243-c107-4d19-8d6a-56152c4766d0',
    'cerveja',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:34:54.165Z
  ],
  driverError: Error: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bfdbf243-c107-4d19-8d6a-56152c4766d0',
    'cerveja',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:34:54.165Z
  ],
  driverError: Error: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 19630e01-653a-4452-91e4-6ae65ab0f2d5: QueryFailedError: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '442ca7fe-45c2-4806-95e6-067100d0c1c4',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:29:21.683Z
  ],
  driverError: Error: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '442ca7fe-45c2-4806-95e6-067100d0c1c4',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:29:21.683Z
  ],
  driverError: Error: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
}
Erro ao aplicar log bf8ae229-e9d4-4d0c-9fc1-3704450216e6: QueryFailedError: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a7204107-9e20-41c2-98a6-346b9a5a25d6',
    '68faea2b-cefa-4fbe-9f77-fcb23e517df4',
    3000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:35:55.701Z
  ],
  driverError: Error: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a7204107-9e20-41c2-98a6-346b9a5a25d6',
    '68faea2b-cefa-4fbe-9f77-fcb23e517df4',
    3000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:35:55.701Z
  ],
  driverError: Error: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 0595d1db-8238-404c-93bf-9c9f4cef3970: QueryFailedError: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '04d0c434-a966-4729-b79c-3b1fae51c254',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:36:04.248Z
  ],
  driverError: Error: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '04d0c434-a966-4729-b79c-3b1fae51c254',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:36:04.248Z
  ],
  driverError: Error: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e3191b9b-bbcb-4c79-a4af-a088db096714: QueryFailedError: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd1d78913-6d4b-4ce4-b081-1e727129637e',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:37:11.685Z
  ],
  driverError: Error: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd1d78913-6d4b-4ce4-b081-1e727129637e',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:37:11.685Z
  ],
  driverError: Error: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 12ae16c1-d36a-4842-bbb4-21590d6f2ef6: QueryFailedError: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c69e2626-333d-48b1-9898-458ff887d445',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:39:40.598Z
  ],
  driverError: Error: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c69e2626-333d-48b1-9898-458ff887d445',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:39:40.598Z
  ],
  driverError: Error: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
}
Erro ao aplicar log ad004e79-81ec-4733-95ea-7d6336217538: QueryFailedError: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f64b8651-ad85-45b8-a437-acf2abc9777d',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:40:45.585Z
  ],
  driverError: Error: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f64b8651-ad85-45b8-a437-acf2abc9777d',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:40:45.585Z
  ],
  driverError: Error: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7be91cfb-0793-4cfc-b92d-ad9e8c314666: QueryFailedError: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '86f2e96e-9038-4b3e-8555-324884703334',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:42:46.116Z
  ],
  driverError: Error: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '86f2e96e-9038-4b3e-8555-324884703334',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:42:46.116Z
  ],
  driverError: Error: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6fa35350-975b-4a3e-ab15-ffb4b2c8b495: QueryFailedError: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2ffb0d9e-1c63-4382-b15d-f61a0346fa11',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:43:48.350Z
  ],
  driverError: Error: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2ffb0d9e-1c63-4382-b15d-f61a0346fa11',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:43:48.350Z
  ],
  driverError: Error: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 496a3a18-a376-4ade-9a7a-39d276fce7ee: QueryFailedError: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862',
    'Reuniao',
    '',
    'Nova America',
    2026-08-20T00:00:00.000Z,
    2026-08-30T00:00:00.000Z,
    2026-09-30T00:00:00.000Z,
    'comissao',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:33:48.271Z
  ],
  driverError: Error: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862',
    'Reuniao',
    '',
    'Nova America',
    2026-08-20T00:00:00.000Z,
    2026-08-30T00:00:00.000Z,
    2026-09-30T00:00:00.000Z,
    'comissao',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:33:48.271Z
  ],
  driverError: Error: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9d7654a4-22a2-44b3-ab78-73c761794936: QueryFailedError: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bfdbf243-c107-4d19-8d6a-56152c4766d0',
    'cerveja',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:34:54.165Z
  ],
  driverError: Error: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bfdbf243-c107-4d19-8d6a-56152c4766d0',
    'cerveja',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:34:54.165Z
  ],
  driverError: Error: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
}
Erro ao aplicar log d5818797-e794-4b1d-abe7-d04625834de5: QueryFailedError: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:50:15.853Z
  ],
  driverError: Error: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:50:15.853Z
  ],
  driverError: Error: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 19630e01-653a-4452-91e4-6ae65ab0f2d5: QueryFailedError: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '442ca7fe-45c2-4806-95e6-067100d0c1c4',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:29:21.683Z
  ],
  driverError: Error: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '442ca7fe-45c2-4806-95e6-067100d0c1c4',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:29:21.683Z
  ],
  driverError: Error: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
}
Erro ao aplicar log bf8ae229-e9d4-4d0c-9fc1-3704450216e6: QueryFailedError: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a7204107-9e20-41c2-98a6-346b9a5a25d6',
    '68faea2b-cefa-4fbe-9f77-fcb23e517df4',
    3000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:35:55.701Z
  ],
  driverError: Error: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a7204107-9e20-41c2-98a6-346b9a5a25d6',
    '68faea2b-cefa-4fbe-9f77-fcb23e517df4',
    3000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:35:55.701Z
  ],
  driverError: Error: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 0595d1db-8238-404c-93bf-9c9f4cef3970: QueryFailedError: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '04d0c434-a966-4729-b79c-3b1fae51c254',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:36:04.248Z
  ],
  driverError: Error: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '04d0c434-a966-4729-b79c-3b1fae51c254',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:36:04.248Z
  ],
  driverError: Error: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e3191b9b-bbcb-4c79-a4af-a088db096714: QueryFailedError: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd1d78913-6d4b-4ce4-b081-1e727129637e',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:37:11.685Z
  ],
  driverError: Error: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd1d78913-6d4b-4ce4-b081-1e727129637e',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:37:11.685Z
  ],
  driverError: Error: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 12ae16c1-d36a-4842-bbb4-21590d6f2ef6: QueryFailedError: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c69e2626-333d-48b1-9898-458ff887d445',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:39:40.598Z
  ],
  driverError: Error: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c69e2626-333d-48b1-9898-458ff887d445',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:39:40.598Z
  ],
  driverError: Error: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
}
Erro ao aplicar log ad004e79-81ec-4733-95ea-7d6336217538: QueryFailedError: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f64b8651-ad85-45b8-a437-acf2abc9777d',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:40:45.585Z
  ],
  driverError: Error: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f64b8651-ad85-45b8-a437-acf2abc9777d',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:40:45.585Z
  ],
  driverError: Error: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7be91cfb-0793-4cfc-b92d-ad9e8c314666: QueryFailedError: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '86f2e96e-9038-4b3e-8555-324884703334',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:42:46.116Z
  ],
  driverError: Error: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '86f2e96e-9038-4b3e-8555-324884703334',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:42:46.116Z
  ],
  driverError: Error: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6fa35350-975b-4a3e-ab15-ffb4b2c8b495: QueryFailedError: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2ffb0d9e-1c63-4382-b15d-f61a0346fa11',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:43:48.350Z
  ],
  driverError: Error: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2ffb0d9e-1c63-4382-b15d-f61a0346fa11',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:43:48.350Z
  ],
  driverError: Error: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
}
Erro ao aplicar log d5818797-e794-4b1d-abe7-d04625834de5: QueryFailedError: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:50:15.853Z
  ],
  driverError: Error: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:50:15.853Z
  ],
  driverError: Error: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 496a3a18-a376-4ade-9a7a-39d276fce7ee: QueryFailedError: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862',
    'Reuniao',
    '',
    'Nova America',
    2026-08-20T00:00:00.000Z,
    2026-08-30T00:00:00.000Z,
    2026-09-30T00:00:00.000Z,
    'comissao',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:33:48.271Z
  ],
  driverError: Error: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, DEFAULT, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862',
    'Reuniao',
    '',
    'Nova America',
    2026-08-20T00:00:00.000Z,
    2026-08-30T00:00:00.000Z,
    2026-09-30T00:00:00.000Z,
    'comissao',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:33:48.271Z
  ],
  driverError: Error: Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
    sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '5bbf4fb3-d512-42f9-9c50-4b21cb8b8862' for key 'PRIMARY'",
  sql: "INSERT INTO `festas`(`id`, `nome`, `local`, `cidade`, `logotipo`, `dataInicio`, `dataTermino`, `vencimentoPromossoria`, `responsavelPromossoria`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('5bbf4fb3-d512-42f9-9c50-4b21cb8b8862', 'Reuniao', '', 'Nova America', DEFAULT, '2026-08-20 00:00:00.000', '2026-08-30 00:00:00.000', '2026-09-30 00:00:00.000', 'comissao', '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:33:48.271', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 9d7654a4-22a2-44b3-ab78-73c761794936: QueryFailedError: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bfdbf243-c107-4d19-8d6a-56152c4766d0',
    'cerveja',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:34:54.165Z
  ],
  driverError: Error: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'bfdbf243-c107-4d19-8d6a-56152c4766d0',
    'cerveja',
    1,
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-08-20T23:34:54.165Z
  ],
  driverError: Error: Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
    sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'bfdbf243-c107-4d19-8d6a-56152c4766d0' for key 'PRIMARY'",
  sql: "INSERT INTO `prendas`(`id`, `nome`, `tipo`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('bfdbf243-c107-4d19-8d6a-56152c4766d0', 'cerveja', 1, '6b512930-b785-4ac2-b648-170f739e7220', '2026-08-20 23:34:54.165', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 19630e01-653a-4452-91e4-6ae65ab0f2d5: QueryFailedError: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '442ca7fe-45c2-4806-95e6-067100d0c1c4',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:29:21.683Z
  ],
  driverError: Error: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '442ca7fe-45c2-4806-95e6-067100d0c1c4',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:29:21.683Z
  ],
  driverError: Error: Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '442ca7fe-45c2-4806-95e6-067100d0c1c4' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('442ca7fe-45c2-4806-95e6-067100d0c1c4', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:29:21.683', DEFAULT, DEFAULT)"
}
Erro ao aplicar log bf8ae229-e9d4-4d0c-9fc1-3704450216e6: QueryFailedError: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a7204107-9e20-41c2-98a6-346b9a5a25d6',
    '68faea2b-cefa-4fbe-9f77-fcb23e517df4',
    3000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:35:55.701Z
  ],
  driverError: Error: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'a7204107-9e20-41c2-98a6-346b9a5a25d6',
    '68faea2b-cefa-4fbe-9f77-fcb23e517df4',
    3000,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:35:55.701Z
  ],
  driverError: Error: Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'a7204107-9e20-41c2-98a6-346b9a5a25d6' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('a7204107-9e20-41c2-98a6-346b9a5a25d6', '68faea2b-cefa-4fbe-9f77-fcb23e517df4', DEFAULT, 3000, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:35:55.701', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 0595d1db-8238-404c-93bf-9c9f4cef3970: QueryFailedError: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '04d0c434-a966-4729-b79c-3b1fae51c254',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:36:04.248Z
  ],
  driverError: Error: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '04d0c434-a966-4729-b79c-3b1fae51c254',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:36:04.248Z
  ],
  driverError: Error: Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '04d0c434-a966-4729-b79c-3b1fae51c254' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('04d0c434-a966-4729-b79c-3b1fae51c254', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:36:04.248', DEFAULT, DEFAULT)"
}
Erro ao aplicar log e3191b9b-bbcb-4c79-a4af-a088db096714: QueryFailedError: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd1d78913-6d4b-4ce4-b081-1e727129637e',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:37:11.685Z
  ],
  driverError: Error: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'd1d78913-6d4b-4ce4-b081-1e727129637e',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:37:11.685Z
  ],
  driverError: Error: Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'd1d78913-6d4b-4ce4-b081-1e727129637e' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('d1d78913-6d4b-4ce4-b081-1e727129637e', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:37:11.685', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 12ae16c1-d36a-4842-bbb4-21590d6f2ef6: QueryFailedError: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c69e2626-333d-48b1-9898-458ff887d445',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:39:40.598Z
  ],
  driverError: Error: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'c69e2626-333d-48b1-9898-458ff887d445',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:39:40.598Z
  ],
  driverError: Error: Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'c69e2626-333d-48b1-9898-458ff887d445' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('c69e2626-333d-48b1-9898-458ff887d445', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:39:40.598', DEFAULT, DEFAULT)"
}
Erro ao aplicar log ad004e79-81ec-4733-95ea-7d6336217538: QueryFailedError: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f64b8651-ad85-45b8-a437-acf2abc9777d',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:40:45.585Z
  ],
  driverError: Error: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    'f64b8651-ad85-45b8-a437-acf2abc9777d',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:40:45.585Z
  ],
  driverError: Error: Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry 'f64b8651-ad85-45b8-a437-acf2abc9777d' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('f64b8651-ad85-45b8-a437-acf2abc9777d', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:40:45.585', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 7be91cfb-0793-4cfc-b92d-ad9e8c314666: QueryFailedError: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '86f2e96e-9038-4b3e-8555-324884703334',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:42:46.116Z
  ],
  driverError: Error: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '86f2e96e-9038-4b3e-8555-324884703334',
    '26eca35e-15fc-4388-89f0-3d6be193cfa2',
    450,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:42:46.116Z
  ],
  driverError: Error: Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '86f2e96e-9038-4b3e-8555-324884703334' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('86f2e96e-9038-4b3e-8555-324884703334', '26eca35e-15fc-4388-89f0-3d6be193cfa2', DEFAULT, 450, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:42:46.116', DEFAULT, DEFAULT)"
}
Erro ao aplicar log 6fa35350-975b-4a3e-ab15-ffb4b2c8b495: QueryFailedError: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2ffb0d9e-1c63-4382-b15d-f61a0346fa11',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:43:48.350Z
  ],
  driverError: Error: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '2ffb0d9e-1c63-4382-b15d-f61a0346fa11',
    '5fd85e04-5951-4929-9254-1146dc0eff0c',
    2100,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:43:48.350Z
  ],
  driverError: Error: Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '2ffb0d9e-1c63-4382-b15d-f61a0346fa11' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('2ffb0d9e-1c63-4382-b15d-f61a0346fa11', '5fd85e04-5951-4929-9254-1146dc0eff0c', DEFAULT, 2100, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:43:48.350', DEFAULT, DEFAULT)"
}
Erro ao aplicar log d5818797-e794-4b1d-abe7-d04625834de5: QueryFailedError: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:50:15.853Z
  ],
  driverError: Error: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
}
Erro ao aplicar logs em lote: QueryFailedError: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
    at Query.onResult (/app/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:37)
    at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
    at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
    at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
    at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {
  query: 'INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES (?, ?, DEFAULT, ?, ?, ?, ?, DEFAULT, DEFAULT)',
  parameters: [
    '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb',
    '7149f14d-e1d4-4bec-966a-0b89724709ca',
    1900,
    'Dinheiro',
    '6b512930-b785-4ac2-b648-170f739e7220',
    2026-09-15T23:50:15.853Z
  ],
  driverError: Error: Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'
      at Packet.asError (/app/node_modules/mysql2/lib/packets/packet.js:740:17)
      at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:29:26)
      at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/base/connection.js:475:34)
      at PacketParser.onPacket (/app/node_modules/mysql2/lib/base/connection.js:93:12)
      at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
      at Socket.<anonymous> (/app/node_modules/mysql2/lib/base/connection.js:100:25)
      at Socket.emit (node:events:524:28)
      at addChunk (node:internal/streams/readable:561:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      at Readable.push (node:internal/streams/readable:392:5) {
    code: 'ER_DUP_ENTRY',
    errno: 1062,
    sqlState: '23000',
    sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
    sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
  },
  code: 'ER_DUP_ENTRY',
  errno: 1062,
  sqlState: '23000',
  sqlMessage: "Duplicate entry '1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb' for key 'PRIMARY'",
  sql: "INSERT INTO `contas_receber_historico`(`id`, `contaReceberId`, `festaCaixaId`, `valor`, `formaPgto`, `createdBy`, `createdAt`, `updatedAt`, `deletedAt`) VALUES ('1c7f9179-5a75-4ae1-aaa8-c1f4b61a27bb', '7149f14d-e1d4-4bec-966a-0b89724709ca', DEFAULT, 1900, 'Dinheiro', '6b512930-b785-4ac2-b648-170f739e7220', '2026-09-15 23:50:15.853', DEFAULT, DEFAULT)"
}
