Error
    at Query.run (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/dialects/postgres/query.js:50:25)
    at /home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/sequelize.js:315:28
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async PostgresQueryInterface.insert (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/dialects/abstract/query-interface.js:308:21)
    at async Ad.save (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/model.js:2490:35)
    at async Ad.create (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/model.js:1362:12)
    at async Object.createAd (/home/liwalete/api/src/services/miscService.js:62:14)
    at async createAd (/home/liwalete/api/src/controllers/adminController.js:216:18) {
  name: 'SequelizeDatabaseError',
  parent: error: value too long for type character varying(255)
      at parseErrorMessage (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:305:11)
      at Parser.handlePacket (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:143:27)
      at Parser.parse (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:37:38)
      at Socket.<anonymous> (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/index.js:12:42)
      at Socket.emit (node:events:509:28)
      at addChunk (node:internal/streams/readable:563:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:514:3)
      at Readable.push (node:internal/streams/readable:394:5)
      at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {
    length: 99,
    severity: 'ERROR',
    code: '22001',
    detail: undefined,
    hint: undefined,
    position: undefined,
    internalPosition: undefined,
    internalQuery: undefined,
    where: undefined,
    schema: undefined,
    table: undefined,
    column: undefined,
    dataType: undefined,
    constraint: undefined,
    file: 'varchar.c',
    line: '632',
    routine: 'varchar',
    sql: 'INSERT INTO "ads" ("id","title","imageUrl","mediaType","advertiserName","link","placement","status","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","title","imageUrl","mediaType","advertiserName","link","placement","status","startDate","endDate","createdAt","updatedAt";',
    parameters: [
      '300e00bb-ca3e-4518-9b19-636a1d833b5c',
      'SportBet',
      'uploads/ad-media/7bd32226-35c3-4731-821a-74800cda9b5e.jpg',
      'image',
      'SportBet',
      'https://www.google.com/aclk?sa=L&pf=1&ai=DChsSEwivusbnto6WAxWBsIMHHQI5OyMYACICCAEQABoCZWY&co=1&ase=2&gclid=CjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&cid=CAAS3gHkaA5GMNGKoxQYo2LEHgdQo_9h7dKJmo_FX58fvVdOWcc-CIfDsa6LIFpdOON8sTOJOWrOOVLUzbKgzU-F23VOVbOcapcbyMi_pIoJWtyZneqfNtMSSmeSfZzQpLv_WhxdCh_5z8tnTRGye2wCUFdjyTsUYOOZnYmm5kdR29BUqeOnPn1YVjFKJcjsqen-BNUiuci-hM-kY1mfih_MoxLb-VtZrrKJJt-0cAC1cNNTGFKGY_32pQxR8F0qZUMoH4vBMF5c3DdplnaltG5oWSf9MlVZXX4BL5Yo6wrFV_Y&cce=2&category=acrcp_v1_32&sig=AOD64_3TLqtnH8OvEoVKBcppOjh7q2w25Q&q&nis=4&adurl=https://www.sportybet.com/tz/?utm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3D13788276146%26utm_content%3D125216390620%26utm_term%3Dsportybet%26utm_ad%3D531694102692%26gad_source%3D1%26gad_campaignid%3D13788276146%26gbraid%3D0AAAAABUpIP3Yw-Sq83S3TWQk1QbAbSWHS%26gclid%3DCjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&ved=2ahUKEwjP5MDnto6WAxWb8rsIHUkLIrkQ0Qx6BAgWEAE',
      'footer',
      'active',
      '2026-08-07 11:38:22.592 +00:00',
      '2026-08-07 11:38:22.592 +00:00'
    ]
  },
  original: error: value too long for type character varying(255)
      at parseErrorMessage (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:305:11)
      at Parser.handlePacket (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:143:27)
      at Parser.parse (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:37:38)
      at Socket.<anonymous> (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/index.js:12:42)
      at Socket.emit (node:events:509:28)
      at addChunk (node:internal/streams/readable:563:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:514:3)
      at Readable.push (node:internal/streams/readable:394:5)
      at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {
    length: 99,
    severity: 'ERROR',
    code: '22001',
    detail: undefined,
    hint: undefined,
    position: undefined,
    internalPosition: undefined,
    internalQuery: undefined,
    where: undefined,
    schema: undefined,
    table: undefined,
    column: undefined,
    dataType: undefined,
    constraint: undefined,
    file: 'varchar.c',
    line: '632',
    routine: 'varchar',
    sql: 'INSERT INTO "ads" ("id","title","imageUrl","mediaType","advertiserName","link","placement","status","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","title","imageUrl","mediaType","advertiserName","link","placement","status","startDate","endDate","createdAt","updatedAt";',
    parameters: [
      '300e00bb-ca3e-4518-9b19-636a1d833b5c',
      'SportBet',
      'uploads/ad-media/7bd32226-35c3-4731-821a-74800cda9b5e.jpg',
      'image',
      'SportBet',
      'https://www.google.com/aclk?sa=L&pf=1&ai=DChsSEwivusbnto6WAxWBsIMHHQI5OyMYACICCAEQABoCZWY&co=1&ase=2&gclid=CjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&cid=CAAS3gHkaA5GMNGKoxQYo2LEHgdQo_9h7dKJmo_FX58fvVdOWcc-CIfDsa6LIFpdOON8sTOJOWrOOVLUzbKgzU-F23VOVbOcapcbyMi_pIoJWtyZneqfNtMSSmeSfZzQpLv_WhxdCh_5z8tnTRGye2wCUFdjyTsUYOOZnYmm5kdR29BUqeOnPn1YVjFKJcjsqen-BNUiuci-hM-kY1mfih_MoxLb-VtZrrKJJt-0cAC1cNNTGFKGY_32pQxR8F0qZUMoH4vBMF5c3DdplnaltG5oWSf9MlVZXX4BL5Yo6wrFV_Y&cce=2&category=acrcp_v1_32&sig=AOD64_3TLqtnH8OvEoVKBcppOjh7q2w25Q&q&nis=4&adurl=https://www.sportybet.com/tz/?utm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3D13788276146%26utm_content%3D125216390620%26utm_term%3Dsportybet%26utm_ad%3D531694102692%26gad_source%3D1%26gad_campaignid%3D13788276146%26gbraid%3D0AAAAABUpIP3Yw-Sq83S3TWQk1QbAbSWHS%26gclid%3DCjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&ved=2ahUKEwjP5MDnto6WAxWb8rsIHUkLIrkQ0Qx6BAgWEAE',
      'footer',
      'active',
      '2026-08-07 11:38:22.592 +00:00',
      '2026-08-07 11:38:22.592 +00:00'
    ]
  },
  sql: 'INSERT INTO "ads" ("id","title","imageUrl","mediaType","advertiserName","link","placement","status","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","title","imageUrl","mediaType","advertiserName","link","placement","status","startDate","endDate","createdAt","updatedAt";',
  parameters: [
    '300e00bb-ca3e-4518-9b19-636a1d833b5c',
    'SportBet',
    'uploads/ad-media/7bd32226-35c3-4731-821a-74800cda9b5e.jpg',
    'image',
    'SportBet',
    'https://www.google.com/aclk?sa=L&pf=1&ai=DChsSEwivusbnto6WAxWBsIMHHQI5OyMYACICCAEQABoCZWY&co=1&ase=2&gclid=CjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&cid=CAAS3gHkaA5GMNGKoxQYo2LEHgdQo_9h7dKJmo_FX58fvVdOWcc-CIfDsa6LIFpdOON8sTOJOWrOOVLUzbKgzU-F23VOVbOcapcbyMi_pIoJWtyZneqfNtMSSmeSfZzQpLv_WhxdCh_5z8tnTRGye2wCUFdjyTsUYOOZnYmm5kdR29BUqeOnPn1YVjFKJcjsqen-BNUiuci-hM-kY1mfih_MoxLb-VtZrrKJJt-0cAC1cNNTGFKGY_32pQxR8F0qZUMoH4vBMF5c3DdplnaltG5oWSf9MlVZXX4BL5Yo6wrFV_Y&cce=2&category=acrcp_v1_32&sig=AOD64_3TLqtnH8OvEoVKBcppOjh7q2w25Q&q&nis=4&adurl=https://www.sportybet.com/tz/?utm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3D13788276146%26utm_content%3D125216390620%26utm_term%3Dsportybet%26utm_ad%3D531694102692%26gad_source%3D1%26gad_campaignid%3D13788276146%26gbraid%3D0AAAAABUpIP3Yw-Sq83S3TWQk1QbAbSWHS%26gclid%3DCjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&ved=2ahUKEwjP5MDnto6WAxWb8rsIHUkLIrkQ0Qx6BAgWEAE',
    'footer',
    'active',
    '2026-08-07 11:38:22.592 +00:00',
    '2026-08-07 11:38:22.592 +00:00'
  ]
}
Error
    at Query.run (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/dialects/postgres/query.js:50:25)
    at /home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/sequelize.js:315:28
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async PostgresQueryInterface.insert (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/dialects/abstract/query-interface.js:308:21)
    at async Ad.save (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/model.js:2490:35)
    at async Ad.create (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/model.js:1362:12)
    at async Object.createAd (/home/liwalete/api/src/services/miscService.js:62:14)
    at async createAd (/home/liwalete/api/src/controllers/adminController.js:216:18) {
  name: 'SequelizeDatabaseError',
  parent: error: value too long for type character varying(255)
      at parseErrorMessage (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:305:11)
      at Parser.handlePacket (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:143:27)
      at Parser.parse (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:37:38)
      at Socket.<anonymous> (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/index.js:12:42)
      at Socket.emit (node:events:509:28)
      at addChunk (node:internal/streams/readable:563:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:514:3)
      at Readable.push (node:internal/streams/readable:394:5)
      at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {
    length: 99,
    severity: 'ERROR',
    code: '22001',
    detail: undefined,
    hint: undefined,
    position: undefined,
    internalPosition: undefined,
    internalQuery: undefined,
    where: undefined,
    schema: undefined,
    table: undefined,
    column: undefined,
    dataType: undefined,
    constraint: undefined,
    file: 'varchar.c',
    line: '632',
    routine: 'varchar',
    sql: 'INSERT INTO "ads" ("id","title","imageUrl","mediaType","advertiserName","link","placement","status","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","title","imageUrl","mediaType","advertiserName","link","placement","status","startDate","endDate","createdAt","updatedAt";',
    parameters: [
      '4b89ce39-addc-492c-92cb-f5bd00776f2a',
      'SportBet',
      'uploads/ad-media/14f1dbff-ce1d-452a-bea5-966b0780010d.jpg',
      'image',
      'SportBet',
      'https://www.google.com/aclk?sa=L&pf=1&ai=DChsSEwivusbnto6WAxWBsIMHHQI5OyMYACICCAEQABoCZWY&co=1&ase=2&gclid=CjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&cid=CAAS3gHkaA5GMNGKoxQYo2LEHgdQo_9h7dKJmo_FX58fvVdOWcc-CIfDsa6LIFpdOON8sTOJOWrOOVLUzbKgzU-F23VOVbOcapcbyMi_pIoJWtyZneqfNtMSSmeSfZzQpLv_WhxdCh_5z8tnTRGye2wCUFdjyTsUYOOZnYmm5kdR29BUqeOnPn1YVjFKJcjsqen-BNUiuci-hM-kY1mfih_MoxLb-VtZrrKJJt-0cAC1cNNTGFKGY_32pQxR8F0qZUMoH4vBMF5c3DdplnaltG5oWSf9MlVZXX4BL5Yo6wrFV_Y&cce=2&category=acrcp_v1_32&sig=AOD64_3TLqtnH8OvEoVKBcppOjh7q2w25Q&q&nis=4&adurl=https://www.sportybet.com/tz/?utm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3D13788276146%26utm_content%3D125216390620%26utm_term%3Dsportybet%26utm_ad%3D531694102692%26gad_source%3D1%26gad_campaignid%3D13788276146%26gbraid%3D0AAAAABUpIP3Yw-Sq83S3TWQk1QbAbSWHS%26gclid%3DCjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&ved=2ahUKEwjP5MDnto6WAxWb8rsIHUkLIrkQ0Qx6BAgWEAE',
      'footer',
      'active',
      '2026-08-07 11:38:26.437 +00:00',
      '2026-08-07 11:38:26.437 +00:00'
    ]
  },
  original: error: value too long for type character varying(255)
      at parseErrorMessage (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:305:11)
      at Parser.handlePacket (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:143:27)
      at Parser.parse (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:37:38)
      at Socket.<anonymous> (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/index.js:12:42)
      at Socket.emit (node:events:509:28)
      at addChunk (node:internal/streams/readable:563:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:514:3)
      at Readable.push (node:internal/streams/readable:394:5)
      at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {
    length: 99,
    severity: 'ERROR',
    code: '22001',
    detail: undefined,
    hint: undefined,
    position: undefined,
    internalPosition: undefined,
    internalQuery: undefined,
    where: undefined,
    schema: undefined,
    table: undefined,
    column: undefined,
    dataType: undefined,
    constraint: undefined,
    file: 'varchar.c',
    line: '632',
    routine: 'varchar',
    sql: 'INSERT INTO "ads" ("id","title","imageUrl","mediaType","advertiserName","link","placement","status","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","title","imageUrl","mediaType","advertiserName","link","placement","status","startDate","endDate","createdAt","updatedAt";',
    parameters: [
      '4b89ce39-addc-492c-92cb-f5bd00776f2a',
      'SportBet',
      'uploads/ad-media/14f1dbff-ce1d-452a-bea5-966b0780010d.jpg',
      'image',
      'SportBet',
      'https://www.google.com/aclk?sa=L&pf=1&ai=DChsSEwivusbnto6WAxWBsIMHHQI5OyMYACICCAEQABoCZWY&co=1&ase=2&gclid=CjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&cid=CAAS3gHkaA5GMNGKoxQYo2LEHgdQo_9h7dKJmo_FX58fvVdOWcc-CIfDsa6LIFpdOON8sTOJOWrOOVLUzbKgzU-F23VOVbOcapcbyMi_pIoJWtyZneqfNtMSSmeSfZzQpLv_WhxdCh_5z8tnTRGye2wCUFdjyTsUYOOZnYmm5kdR29BUqeOnPn1YVjFKJcjsqen-BNUiuci-hM-kY1mfih_MoxLb-VtZrrKJJt-0cAC1cNNTGFKGY_32pQxR8F0qZUMoH4vBMF5c3DdplnaltG5oWSf9MlVZXX4BL5Yo6wrFV_Y&cce=2&category=acrcp_v1_32&sig=AOD64_3TLqtnH8OvEoVKBcppOjh7q2w25Q&q&nis=4&adurl=https://www.sportybet.com/tz/?utm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3D13788276146%26utm_content%3D125216390620%26utm_term%3Dsportybet%26utm_ad%3D531694102692%26gad_source%3D1%26gad_campaignid%3D13788276146%26gbraid%3D0AAAAABUpIP3Yw-Sq83S3TWQk1QbAbSWHS%26gclid%3DCjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&ved=2ahUKEwjP5MDnto6WAxWb8rsIHUkLIrkQ0Qx6BAgWEAE',
      'footer',
      'active',
      '2026-08-07 11:38:26.437 +00:00',
      '2026-08-07 11:38:26.437 +00:00'
    ]
  },
  sql: 'INSERT INTO "ads" ("id","title","imageUrl","mediaType","advertiserName","link","placement","status","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","title","imageUrl","mediaType","advertiserName","link","placement","status","startDate","endDate","createdAt","updatedAt";',
  parameters: [
    '4b89ce39-addc-492c-92cb-f5bd00776f2a',
    'SportBet',
    'uploads/ad-media/14f1dbff-ce1d-452a-bea5-966b0780010d.jpg',
    'image',
    'SportBet',
    'https://www.google.com/aclk?sa=L&pf=1&ai=DChsSEwivusbnto6WAxWBsIMHHQI5OyMYACICCAEQABoCZWY&co=1&ase=2&gclid=CjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&cid=CAAS3gHkaA5GMNGKoxQYo2LEHgdQo_9h7dKJmo_FX58fvVdOWcc-CIfDsa6LIFpdOON8sTOJOWrOOVLUzbKgzU-F23VOVbOcapcbyMi_pIoJWtyZneqfNtMSSmeSfZzQpLv_WhxdCh_5z8tnTRGye2wCUFdjyTsUYOOZnYmm5kdR29BUqeOnPn1YVjFKJcjsqen-BNUiuci-hM-kY1mfih_MoxLb-VtZrrKJJt-0cAC1cNNTGFKGY_32pQxR8F0qZUMoH4vBMF5c3DdplnaltG5oWSf9MlVZXX4BL5Yo6wrFV_Y&cce=2&category=acrcp_v1_32&sig=AOD64_3TLqtnH8OvEoVKBcppOjh7q2w25Q&q&nis=4&adurl=https://www.sportybet.com/tz/?utm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3D13788276146%26utm_content%3D125216390620%26utm_term%3Dsportybet%26utm_ad%3D531694102692%26gad_source%3D1%26gad_campaignid%3D13788276146%26gbraid%3D0AAAAABUpIP3Yw-Sq83S3TWQk1QbAbSWHS%26gclid%3DCjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&ved=2ahUKEwjP5MDnto6WAxWb8rsIHUkLIrkQ0Qx6BAgWEAE',
    'footer',
    'active',
    '2026-08-07 11:38:26.437 +00:00',
    '2026-08-07 11:38:26.437 +00:00'
  ]
}
Error
    at Query.run (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/dialects/postgres/query.js:50:25)
    at /home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/sequelize.js:315:28
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async PostgresQueryInterface.insert (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/dialects/abstract/query-interface.js:308:21)
    at async Ad.save (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/model.js:2490:35)
    at async Ad.create (/home/liwalete/nodevenv/api/24/lib/node_modules/sequelize/lib/model.js:1362:12)
    at async Object.createAd (/home/liwalete/api/src/services/miscService.js:62:14)
    at async createAd (/home/liwalete/api/src/controllers/adminController.js:216:18) {
  name: 'SequelizeDatabaseError',
  parent: error: value too long for type character varying(255)
      at parseErrorMessage (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:305:11)
      at Parser.handlePacket (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:143:27)
      at Parser.parse (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:37:38)
      at Socket.<anonymous> (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/index.js:12:42)
      at Socket.emit (node:events:509:28)
      at addChunk (node:internal/streams/readable:563:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:514:3)
      at Readable.push (node:internal/streams/readable:394:5)
      at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {
    length: 99,
    severity: 'ERROR',
    code: '22001',
    detail: undefined,
    hint: undefined,
    position: undefined,
    internalPosition: undefined,
    internalQuery: undefined,
    where: undefined,
    schema: undefined,
    table: undefined,
    column: undefined,
    dataType: undefined,
    constraint: undefined,
    file: 'varchar.c',
    line: '632',
    routine: 'varchar',
    sql: 'INSERT INTO "ads" ("id","title","imageUrl","mediaType","advertiserName","link","placement","status","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","title","imageUrl","mediaType","advertiserName","link","placement","status","startDate","endDate","createdAt","updatedAt";',
    parameters: [
      '61937ed9-e11e-4622-885b-dab4cdfe28da',
      'SportBet',
      'uploads/ad-media/61d683a1-a177-4ac6-957f-432ab996a72b.jpg',
      'image',
      'SportBet',
      'https://www.google.com/aclk?sa=L&pf=1&ai=DChsSEwivusbnto6WAxWBsIMHHQI5OyMYACICCAEQABoCZWY&co=1&ase=2&gclid=CjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&cid=CAAS3gHkaA5GMNGKoxQYo2LEHgdQo_9h7dKJmo_FX58fvVdOWcc-CIfDsa6LIFpdOON8sTOJOWrOOVLUzbKgzU-F23VOVbOcapcbyMi_pIoJWtyZneqfNtMSSmeSfZzQpLv_WhxdCh_5z8tnTRGye2wCUFdjyTsUYOOZnYmm5kdR29BUqeOnPn1YVjFKJcjsqen-BNUiuci-hM-kY1mfih_MoxLb-VtZrrKJJt-0cAC1cNNTGFKGY_32pQxR8F0qZUMoH4vBMF5c3DdplnaltG5oWSf9MlVZXX4BL5Yo6wrFV_Y&cce=2&category=acrcp_v1_32&sig=AOD64_3TLqtnH8OvEoVKBcppOjh7q2w25Q&q&nis=4&adurl=https://www.sportybet.com/tz/?utm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3D13788276146%26utm_content%3D125216390620%26utm_term%3Dsportybet%26utm_ad%3D531694102692%26gad_source%3D1%26gad_campaignid%3D13788276146%26gbraid%3D0AAAAABUpIP3Yw-Sq83S3TWQk1QbAbSWHS%26gclid%3DCjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&ved=2ahUKEwjP5MDnto6WAxWb8rsIHUkLIrkQ0Qx6BAgWEAE',
      'footer',
      'active',
      '2026-08-07 11:38:33.974 +00:00',
      '2026-08-07 11:38:33.974 +00:00'
    ]
  },
  original: error: value too long for type character varying(255)
      at parseErrorMessage (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:305:11)
      at Parser.handlePacket (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:143:27)
      at Parser.parse (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/parser.js:37:38)
      at Socket.<anonymous> (/home/liwalete/nodevenv/api/24/lib/node_modules/pg-protocol/dist/index.js:12:42)
      at Socket.emit (node:events:509:28)
      at addChunk (node:internal/streams/readable:563:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:514:3)
      at Readable.push (node:internal/streams/readable:394:5)
      at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {
    length: 99,
    severity: 'ERROR',
    code: '22001',
    detail: undefined,
    hint: undefined,
    position: undefined,
    internalPosition: undefined,
    internalQuery: undefined,
    where: undefined,
    schema: undefined,
    table: undefined,
    column: undefined,
    dataType: undefined,
    constraint: undefined,
    file: 'varchar.c',
    line: '632',
    routine: 'varchar',
    sql: 'INSERT INTO "ads" ("id","title","imageUrl","mediaType","advertiserName","link","placement","status","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","title","imageUrl","mediaType","advertiserName","link","placement","status","startDate","endDate","createdAt","updatedAt";',
    parameters: [
      '61937ed9-e11e-4622-885b-dab4cdfe28da',
      'SportBet',
      'uploads/ad-media/61d683a1-a177-4ac6-957f-432ab996a72b.jpg',
      'image',
      'SportBet',
      'https://www.google.com/aclk?sa=L&pf=1&ai=DChsSEwivusbnto6WAxWBsIMHHQI5OyMYACICCAEQABoCZWY&co=1&ase=2&gclid=CjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&cid=CAAS3gHkaA5GMNGKoxQYo2LEHgdQo_9h7dKJmo_FX58fvVdOWcc-CIfDsa6LIFpdOON8sTOJOWrOOVLUzbKgzU-F23VOVbOcapcbyMi_pIoJWtyZneqfNtMSSmeSfZzQpLv_WhxdCh_5z8tnTRGye2wCUFdjyTsUYOOZnYmm5kdR29BUqeOnPn1YVjFKJcjsqen-BNUiuci-hM-kY1mfih_MoxLb-VtZrrKJJt-0cAC1cNNTGFKGY_32pQxR8F0qZUMoH4vBMF5c3DdplnaltG5oWSf9MlVZXX4BL5Yo6wrFV_Y&cce=2&category=acrcp_v1_32&sig=AOD64_3TLqtnH8OvEoVKBcppOjh7q2w25Q&q&nis=4&adurl=https://www.sportybet.com/tz/?utm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3D13788276146%26utm_content%3D125216390620%26utm_term%3Dsportybet%26utm_ad%3D531694102692%26gad_source%3D1%26gad_campaignid%3D13788276146%26gbraid%3D0AAAAABUpIP3Yw-Sq83S3TWQk1QbAbSWHS%26gclid%3DCjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&ved=2ahUKEwjP5MDnto6WAxWb8rsIHUkLIrkQ0Qx6BAgWEAE',
      'footer',
      'active',
      '2026-08-07 11:38:33.974 +00:00',
      '2026-08-07 11:38:33.974 +00:00'
    ]
  },
  sql: 'INSERT INTO "ads" ("id","title","imageUrl","mediaType","advertiserName","link","placement","status","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","title","imageUrl","mediaType","advertiserName","link","placement","status","startDate","endDate","createdAt","updatedAt";',
  parameters: [
    '61937ed9-e11e-4622-885b-dab4cdfe28da',
    'SportBet',
    'uploads/ad-media/61d683a1-a177-4ac6-957f-432ab996a72b.jpg',
    'image',
    'SportBet',
    'https://www.google.com/aclk?sa=L&pf=1&ai=DChsSEwivusbnto6WAxWBsIMHHQI5OyMYACICCAEQABoCZWY&co=1&ase=2&gclid=CjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&cid=CAAS3gHkaA5GMNGKoxQYo2LEHgdQo_9h7dKJmo_FX58fvVdOWcc-CIfDsa6LIFpdOON8sTOJOWrOOVLUzbKgzU-F23VOVbOcapcbyMi_pIoJWtyZneqfNtMSSmeSfZzQpLv_WhxdCh_5z8tnTRGye2wCUFdjyTsUYOOZnYmm5kdR29BUqeOnPn1YVjFKJcjsqen-BNUiuci-hM-kY1mfih_MoxLb-VtZrrKJJt-0cAC1cNNTGFKGY_32pQxR8F0qZUMoH4vBMF5c3DdplnaltG5oWSf9MlVZXX4BL5Yo6wrFV_Y&cce=2&category=acrcp_v1_32&sig=AOD64_3TLqtnH8OvEoVKBcppOjh7q2w25Q&q&nis=4&adurl=https://www.sportybet.com/tz/?utm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_campaign%3D13788276146%26utm_content%3D125216390620%26utm_term%3Dsportybet%26utm_ad%3D531694102692%26gad_source%3D1%26gad_campaignid%3D13788276146%26gbraid%3D0AAAAABUpIP3Yw-Sq83S3TWQk1QbAbSWHS%26gclid%3DCjwKCAjwhNbTBhB4EiwAsFSg-nAEPyhpvRqU26cf2-O2hKt2GGsYq9FRszgPM1U1ywFNwYE_KkdinRoCl7YQAvD_BwE&ved=2ahUKEwjP5MDnto6WAxWb8rsIHUkLIrkQ0Qx6BAgWEAE',
    'footer',
    'active',
    '2026-08-07 11:38:33.974 +00:00',
    '2026-08-07 11:38:33.974 +00:00'
  ]
}
