ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:401:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:725:22)
    at Object.keyGenerator (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:835:20)
    at /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:925:32
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:878:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:401:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:725:22)
    at Object.keyGenerator (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:835:20)
    at /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:925:32
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:878:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:401:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:725:22)
    at Object.keyGenerator (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:835:20)
    at /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:925:32
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:878:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:401:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:725:22)
    at Object.keyGenerator (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:835:20)
    at /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:925:32
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:878:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:401:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:725:22)
    at Object.keyGenerator (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:835:20)
    at /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:925:32
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:878:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
[error] GET /api/auth/me PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getCurrentSession (/home2/nepaquar/backend/src/services/auth.service.js:182:18)
    at async me (/home2/nepaquar/backend/src/controllers/auth.controller.js:31:21) {
  code: 'P6000',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff?isActive=true PrismaClientKnownRequestError: 
Invalid `prisma.staff.findMany()` invocation in
/home2/nepaquar/backend/src/services/staff.service.js:42:25

  39 const orderBy = [{ isActive: "desc" }, { fullName: "asc" }];
  40 
  41 if (!pagination) {
→ 42   return prisma.staff.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/staff.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Staff',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/maintenance?month=8&year=2026&page=1&limit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.vehicleMaintenance.count()` invocation in
/home2/nepaquar/backend/src/services/vehicle-maintenance.service.js:71:31

  68 
  69 const { page, limit } = pagination;
  70 const [total, data] = await prisma.$transaction([
→ 71   prisma.vehicleMaintenance.count(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862) {
  code: 'P6000',
  meta: {
    modelName: 'VehicleMaintenance',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/leaves?month=8&year=2026 PrismaClientKnownRequestError: 
Invalid `prisma.leaveRequest.findMany()` invocation in
/home2/nepaquar/backend/src/services/staff-management.service.js:38:32

  35 const orderBy = [{ createdAt: "desc" }];
  36 
  37 if (!pagination) {
→ 38   return prisma.leaveRequest.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'LeaveRequest',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/advances PrismaClientKnownRequestError: 
Invalid `prisma.advance.findMany()` invocation in
/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:39

  39 const orderBy = [{ advanceYear: "desc" }, { advanceMonth: "desc" }, { createdAt: "desc" }];
  40 
  41 if (!pagination) {
→ 42   const rows = await prisma.advance.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listAdvances (/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:18)
    at async /home2/nepaquar/backend/src/controllers/advanced_staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Advance',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/purchase-suppliers PrismaClientKnownRequestError: 
Invalid `prisma.purchaseSupplier.findMany()` invocation in
/home2/nepaquar/backend/src/services/purchaseSuppliers.service.js:37:51

  34 };
  35 
  36 const listSuppliers = async (orgId) => {
→ 37   const suppliers = await prisma.purchaseSupplier.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listSuppliers (/home2/nepaquar/backend/src/services/purchaseSuppliers.service.js:37:21)
    at async /home2/nepaquar/backend/src/controllers/purchaseSuppliers.controller.js:4:46 {
  code: 'P6000',
  meta: {
    modelName: 'PurchaseSupplier',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff PrismaClientKnownRequestError: 
Invalid `prisma.staff.findMany()` invocation in
/home2/nepaquar/backend/src/services/staff.service.js:42:25

  39 const orderBy = [{ isActive: "desc" }, { fullName: "asc" }];
  40 
  41 if (!pagination) {
→ 42   return prisma.staff.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/staff.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Staff',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/products PrismaClientKnownRequestError: 
Invalid `prisma.masterProduct.findMany()` invocation in
/home2/nepaquar/backend/src/services/product.service.js:70:33

  67 const orderBy = [{ isActive: "desc" }, { name: "asc" }];
  68 
  69 if (!pagination) {
→ 70   return prisma.masterProduct.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/product.controller.js:6:46 {
  code: 'P6000',
  meta: {
    modelName: 'MasterProduct',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff?isActive=true PrismaClientKnownRequestError: 
Invalid `prisma.staff.findMany()` invocation in
/home2/nepaquar/backend/src/services/staff.service.js:42:25

  39 const orderBy = [{ isActive: "desc" }, { fullName: "asc" }];
  40 
  41 if (!pagination) {
→ 42   return prisma.staff.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/staff.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Staff',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/advances?month=8&year=2026 PrismaClientKnownRequestError: 
Invalid `prisma.advance.findMany()` invocation in
/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:39

  39 const orderBy = [{ advanceYear: "desc" }, { advanceMonth: "desc" }, { createdAt: "desc" }];
  40 
  41 if (!pagination) {
→ 42   const rows = await prisma.advance.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listAdvances (/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:18)
    at async /home2/nepaquar/backend/src/controllers/advanced_staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Advance',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/advances PrismaClientKnownRequestError: 
Invalid `prisma.advance.findMany()` invocation in
/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:39

  39 const orderBy = [{ advanceYear: "desc" }, { advanceMonth: "desc" }, { createdAt: "desc" }];
  40 
  41 if (!pagination) {
→ 42   const rows = await prisma.advance.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listAdvances (/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:18)
    at async /home2/nepaquar/backend/src/controllers/advanced_staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Advance',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=8&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/advances?month=8&year=2026 PrismaClientKnownRequestError: 
Invalid `prisma.advance.findMany()` invocation in
/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:39

  39 const orderBy = [{ advanceYear: "desc" }, { advanceMonth: "desc" }, { createdAt: "desc" }];
  40 
  41 if (!pagination) {
→ 42   const rows = await prisma.advance.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listAdvances (/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:18)
    at async /home2/nepaquar/backend/src/controllers/advanced_staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Advance',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=4&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=8&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/products PrismaClientKnownRequestError: 
Invalid `prisma.masterProduct.findMany()` invocation in
/home2/nepaquar/backend/src/services/product.service.js:70:33

  67 const orderBy = [{ isActive: "desc" }, { name: "asc" }];
  68 
  69 if (!pagination) {
→ 70   return prisma.masterProduct.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/product.controller.js:6:46 {
  code: 'P6000',
  meta: {
    modelName: 'MasterProduct',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/purchase-suppliers PrismaClientKnownRequestError: 
Invalid `prisma.purchaseSupplier.findMany()` invocation in
/home2/nepaquar/backend/src/services/purchaseSuppliers.service.js:37:51

  34 };
  35 
  36 const listSuppliers = async (orgId) => {
→ 37   const suppliers = await prisma.purchaseSupplier.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listSuppliers (/home2/nepaquar/backend/src/services/purchaseSuppliers.service.js:37:21)
    at async /home2/nepaquar/backend/src/controllers/purchaseSuppliers.controller.js:4:46 {
  code: 'P6000',
  meta: {
    modelName: 'PurchaseSupplier',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/auth/me PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getCurrentSession (/home2/nepaquar/backend/src/services/auth.service.js:182:18)
    at async me (/home2/nepaquar/backend/src/controllers/auth.controller.js:31:21) {
  code: 'P6000',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/day/2026-08-19?page=1&limit=100 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.count()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:45:28

  42 
  43 const { page, limit } = pagination;
  44 const [total, data] = await prisma.$transaction([
→ 45   prisma.dailyTripRecord.count(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862) {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=8&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/sales/summary?year=2026&view=monthly PrismaClientKnownRequestError: 
Invalid `prisma.dailySalesReport.findMany()` invocation in
/home2/nepaquar/backend/src/services/sales.service.js:759:49

  756 const getSummaryService = async (orgId, filters) => {
  757   const where = { orgId, date: summaryDateRange(filters.view) };
  758 
→ 759   const reports = await prisma.dailySalesReport.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getSummaryService (/home2/nepaquar/backend/src/services/sales.service.js:759:19)
    at async /home2/nepaquar/backend/src/controllers/sales.controller.js:7:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailySalesReport',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/leaves?month=8&year=2026 PrismaClientKnownRequestError: 
Invalid `prisma.leaveRequest.findMany()` invocation in
/home2/nepaquar/backend/src/services/staff-management.service.js:38:32

  35 const orderBy = [{ createdAt: "desc" }];
  36 
  37 if (!pagination) {
→ 38   return prisma.leaveRequest.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'LeaveRequest',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/maintenance?month=8&year=2026&page=1&limit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.vehicleMaintenance.count()` invocation in
/home2/nepaquar/backend/src/services/vehicle-maintenance.service.js:71:31

  68 
  69 const { page, limit } = pagination;
  70 const [total, data] = await prisma.$transaction([
→ 71   prisma.vehicleMaintenance.count(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862) {
  code: 'P6000',
  meta: {
    modelName: 'VehicleMaintenance',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=1&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=6&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/plant/summary?year=2026&view=monthly PrismaClientKnownRequestError: 
Invalid `prisma.dailyPlantReport.findMany()` invocation in
/home2/nepaquar/backend/src/services/plant-report.service.js:201:49

  198 const { view } = filters;
  199 const where = buildSummaryWhere(orgId, filters);
  200 
→ 201 const reports = await prisma.dailyPlantReport.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.summary (/home2/nepaquar/backend/src/services/plant-report.service.js:201:19)
    at async /home2/nepaquar/backend/src/controllers/plant-report.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyPlantReport',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/sales/summary?month=8&year=2026&view=daily PrismaClientKnownRequestError: 
Invalid `prisma.dailySalesReport.findMany()` invocation in
/home2/nepaquar/backend/src/services/sales.service.js:759:49

  756 const getSummaryService = async (orgId, filters) => {
  757   const where = { orgId, date: summaryDateRange(filters.view) };
  758 
→ 759   const reports = await prisma.dailySalesReport.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getSummaryService (/home2/nepaquar/backend/src/services/sales.service.js:759:19)
    at async /home2/nepaquar/backend/src/controllers/sales.controller.js:7:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailySalesReport',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=2&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=3&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=7&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=5&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=4&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/sales/summary?month=8&year=2026&view=daily PrismaClientKnownRequestError: 
Invalid `prisma.dailySalesReport.findMany()` invocation in
/home2/nepaquar/backend/src/services/sales.service.js:759:49

  756 const getSummaryService = async (orgId, filters) => {
  757   const where = { orgId, date: summaryDateRange(filters.view) };
  758 
→ 759   const reports = await prisma.dailySalesReport.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getSummaryService (/home2/nepaquar/backend/src/services/sales.service.js:759:19)
    at async /home2/nepaquar/backend/src/controllers/sales.controller.js:7:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailySalesReport',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=8&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] POST /api/auth/login PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.login (/home2/nepaquar/backend/src/services/auth.service.js:91:18)
    at async login (/home2/nepaquar/backend/src/controllers/auth.controller.js:10:33) {
  code: 'P6000',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] POST /api/auth/login PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate was not able to connect to your database. The underlying error is: failed to download after 5 attempts: failed to fetch https://binaries.prisma.sh/query-plan-executor/query-plan-executor-7.9.1-aarch64.gz?t=1787146402404762851: Get "https://binaries.prisma.sh/query-plan-executor/query-plan-executor-7.9.1-aarch64.gz?t=1787146402404762851": net/http: request canceled (Client.Timeout exceeded while awaiting headers)
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.login (/home2/nepaquar/backend/src/services/auth.service.js:91:18)
    at async login (/home2/nepaquar/backend/src/controllers/auth.controller.js:10:33) {
  code: 'P6008',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6008',
    message: 'Accelerate was not able to connect to your database. The underlying error is: failed to download after 5 attempts: failed to fetch https://binaries.prisma.sh/query-plan-executor/query-plan-executor-7.9.1-aarch64.gz?t=1787146402404762851: Get "https://binaries.prisma.sh/query-plan-executor/query-plan-executor-7.9.1-aarch64.gz?t=1787146402404762851": net/http: request canceled (Client.Timeout exceeded while awaiting headers)'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/auth/me PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate was not able to connect to your database. The underlying error is: failed to download after 5 attempts: failed to fetch https://binaries.prisma.sh/query-plan-executor/query-plan-executor-7.9.1-aarch64.gz?t=1787146402404762851: Get "https://binaries.prisma.sh/query-plan-executor/query-plan-executor-7.9.1-aarch64.gz?t=1787146402404762851": net/http: request canceled (Client.Timeout exceeded while awaiting headers)
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getCurrentSession (/home2/nepaquar/backend/src/services/auth.service.js:182:18)
    at async me (/home2/nepaquar/backend/src/controllers/auth.controller.js:31:21) {
  code: 'P6008',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6008',
    message: 'Accelerate was not able to connect to your database. The underlying error is: failed to download after 5 attempts: failed to fetch https://binaries.prisma.sh/query-plan-executor/query-plan-executor-7.9.1-aarch64.gz?t=1787146402404762851: Get "https://binaries.prisma.sh/query-plan-executor/query-plan-executor-7.9.1-aarch64.gz?t=1787146402404762851": net/http: request canceled (Client.Timeout exceeded while awaiting headers)'
  },
  clientVersion: '7.9.1'
}
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:401:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:725:22)
    at Object.keyGenerator (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:835:20)
    at /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:925:32
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:878:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
[error] GET /api/assets/staff?isActive=true PrismaClientKnownRequestError: 
Invalid `prisma.staff.findMany()` invocation in
/home2/nepaquar/backend/src/services/staff.service.js:42:25

  39 const orderBy = [{ isActive: "desc" }, { fullName: "asc" }];
  40 
  41 if (!pagination) {
→ 42   return prisma.staff.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/staff.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Staff',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/products PrismaClientKnownRequestError: 
Invalid `prisma.masterProduct.findMany()` invocation in
/home2/nepaquar/backend/src/services/product.service.js:70:33

  67 const orderBy = [{ isActive: "desc" }, { name: "asc" }];
  68 
  69 if (!pagination) {
→ 70   return prisma.masterProduct.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/product.controller.js:6:46 {
  code: 'P6000',
  meta: {
    modelName: 'MasterProduct',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/advances?month=8&year=2026 PrismaClientKnownRequestError: 
Invalid `prisma.advance.findMany()` invocation in
/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:39

  39 const orderBy = [{ advanceYear: "desc" }, { advanceMonth: "desc" }, { createdAt: "desc" }];
  40 
  41 if (!pagination) {
→ 42   const rows = await prisma.advance.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listAdvances (/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:18)
    at async /home2/nepaquar/backend/src/controllers/advanced_staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Advance',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/sales/summary?year=2026&view=monthly PrismaClientKnownRequestError: 
Invalid `prisma.dailySalesReport.findMany()` invocation in
/home2/nepaquar/backend/src/services/sales.service.js:759:49

  756 const getSummaryService = async (orgId, filters) => {
  757   const where = { orgId, date: summaryDateRange(filters.view) };
  758 
→ 759   const reports = await prisma.dailySalesReport.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getSummaryService (/home2/nepaquar/backend/src/services/sales.service.js:759:19)
    at async /home2/nepaquar/backend/src/controllers/sales.controller.js:7:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailySalesReport',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/products PrismaClientKnownRequestError: 
Invalid `prisma.masterProduct.findMany()` invocation in
/home2/nepaquar/backend/src/services/product.service.js:70:33

  67 const orderBy = [{ isActive: "desc" }, { name: "asc" }];
  68 
  69 if (!pagination) {
→ 70   return prisma.masterProduct.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/product.controller.js:6:46 {
  code: 'P6000',
  meta: {
    modelName: 'MasterProduct',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/sales/summary?month=8&year=2026&view=daily PrismaClientKnownRequestError: 
Invalid `prisma.dailySalesReport.findMany()` invocation in
/home2/nepaquar/backend/src/services/sales.service.js:759:49

  756 const getSummaryService = async (orgId, filters) => {
  757   const where = { orgId, date: summaryDateRange(filters.view) };
  758 
→ 759   const reports = await prisma.dailySalesReport.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getSummaryService (/home2/nepaquar/backend/src/services/sales.service.js:759:19)
    at async /home2/nepaquar/backend/src/controllers/sales.controller.js:7:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailySalesReport',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=8&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=4&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/plant/summary?year=2026&view=monthly PrismaClientKnownRequestError: 
Invalid `prisma.dailyPlantReport.findMany()` invocation in
/home2/nepaquar/backend/src/services/plant-report.service.js:201:49

  198 const { view } = filters;
  199 const where = buildSummaryWhere(orgId, filters);
  200 
→ 201 const reports = await prisma.dailyPlantReport.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.summary (/home2/nepaquar/backend/src/services/plant-report.service.js:201:19)
    at async /home2/nepaquar/backend/src/controllers/plant-report.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyPlantReport',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=8&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=7&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=3&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=8&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=6&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/sales/summary?month=8&year=2026&view=daily PrismaClientKnownRequestError: 
Invalid `prisma.dailySalesReport.findMany()` invocation in
/home2/nepaquar/backend/src/services/sales.service.js:759:49

  756 const getSummaryService = async (orgId, filters) => {
  757   const where = { orgId, date: summaryDateRange(filters.view) };
  758 
→ 759   const reports = await prisma.dailySalesReport.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getSummaryService (/home2/nepaquar/backend/src/services/sales.service.js:759:19)
    at async /home2/nepaquar/backend/src/controllers/sales.controller.js:7:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailySalesReport',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=5&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=2&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/leaves?month=8&year=2026 PrismaClientKnownRequestError: 
Invalid `prisma.leaveRequest.findMany()` invocation in
/home2/nepaquar/backend/src/services/staff-management.service.js:38:32

  35 const orderBy = [{ createdAt: "desc" }];
  36 
  37 if (!pagination) {
→ 38   return prisma.leaveRequest.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'LeaveRequest',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/advances PrismaClientKnownRequestError: 
Invalid `prisma.advance.findMany()` invocation in
/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:39

  39 const orderBy = [{ advanceYear: "desc" }, { advanceMonth: "desc" }, { createdAt: "desc" }];
  40 
  41 if (!pagination) {
→ 42   const rows = await prisma.advance.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listAdvances (/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:18)
    at async /home2/nepaquar/backend/src/controllers/advanced_staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Advance',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/purchase-suppliers PrismaClientKnownRequestError: 
Invalid `prisma.purchaseSupplier.findMany()` invocation in
/home2/nepaquar/backend/src/services/purchaseSuppliers.service.js:37:51

  34 };
  35 
  36 const listSuppliers = async (orgId) => {
→ 37   const suppliers = await prisma.purchaseSupplier.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listSuppliers (/home2/nepaquar/backend/src/services/purchaseSuppliers.service.js:37:21)
    at async /home2/nepaquar/backend/src/controllers/purchaseSuppliers.controller.js:4:46 {
  code: 'P6000',
  meta: {
    modelName: 'PurchaseSupplier',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/advances?month=8&year=2026 PrismaClientKnownRequestError: 
Invalid `prisma.advance.findMany()` invocation in
/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:39

  39 const orderBy = [{ advanceYear: "desc" }, { advanceMonth: "desc" }, { createdAt: "desc" }];
  40 
  41 if (!pagination) {
→ 42   const rows = await prisma.advance.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listAdvances (/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:18)
    at async /home2/nepaquar/backend/src/controllers/advanced_staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Advance',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/sales/summary?year=2026&view=monthly PrismaClientKnownRequestError: 
Invalid `prisma.dailySalesReport.findMany()` invocation in
/home2/nepaquar/backend/src/services/sales.service.js:759:49

  756 const getSummaryService = async (orgId, filters) => {
  757   const where = { orgId, date: summaryDateRange(filters.view) };
  758 
→ 759   const reports = await prisma.dailySalesReport.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getSummaryService (/home2/nepaquar/backend/src/services/sales.service.js:759:19)
    at async /home2/nepaquar/backend/src/controllers/sales.controller.js:7:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailySalesReport',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=5&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=4&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/advances PrismaClientKnownRequestError: 
Invalid `prisma.advance.findMany()` invocation in
/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:39

  39 const orderBy = [{ advanceYear: "desc" }, { advanceMonth: "desc" }, { createdAt: "desc" }];
  40 
  41 if (!pagination) {
→ 42   const rows = await prisma.advance.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listAdvances (/home2/nepaquar/backend/src/services/advanced_staff-management.service.js:42:18)
    at async /home2/nepaquar/backend/src/controllers/advanced_staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Advance',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=3&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/plant/summary?year=2026&view=monthly PrismaClientKnownRequestError: 
Invalid `prisma.dailyPlantReport.findMany()` invocation in
/home2/nepaquar/backend/src/services/plant-report.service.js:201:49

  198 const { view } = filters;
  199 const where = buildSummaryWhere(orgId, filters);
  200 
→ 201 const reports = await prisma.dailyPlantReport.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.summary (/home2/nepaquar/backend/src/services/plant-report.service.js:201:19)
    at async /home2/nepaquar/backend/src/controllers/plant-report.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyPlantReport',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=6&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/auth/me PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getCurrentSession (/home2/nepaquar/backend/src/services/auth.service.js:182:18)
    at async me (/home2/nepaquar/backend/src/controllers/auth.controller.js:31:21) {
  code: 'P6000',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/day/2026-08-21?page=1&limit=100 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.count()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:45:28

  42 
  43 const { page, limit } = pagination;
  44 const [total, data] = await prisma.$transaction([
→ 45   prisma.dailyTripRecord.count(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862) {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff/leaves?month=8&year=2026 PrismaClientKnownRequestError: 
Invalid `prisma.leaveRequest.findMany()` invocation in
/home2/nepaquar/backend/src/services/staff-management.service.js:38:32

  35 const orderBy = [{ createdAt: "desc" }];
  36 
  37 if (!pagination) {
→ 38   return prisma.leaveRequest.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/staff-management.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'LeaveRequest',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/purchase-suppliers PrismaClientKnownRequestError: 
Invalid `prisma.purchaseSupplier.findMany()` invocation in
/home2/nepaquar/backend/src/services/purchaseSuppliers.service.js:37:51

  34 };
  35 
  36 const listSuppliers = async (orgId) => {
→ 37   const suppliers = await prisma.purchaseSupplier.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.listSuppliers (/home2/nepaquar/backend/src/services/purchaseSuppliers.service.js:37:21)
    at async /home2/nepaquar/backend/src/controllers/purchaseSuppliers.controller.js:4:46 {
  code: 'P6000',
  meta: {
    modelName: 'PurchaseSupplier',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/assets/staff?isActive=true PrismaClientKnownRequestError: 
Invalid `prisma.staff.findMany()` invocation in
/home2/nepaquar/backend/src/services/staff.service.js:42:25

  39 const orderBy = [{ isActive: "desc" }, { fullName: "asc" }];
  40 
  41 if (!pagination) {
→ 42   return prisma.staff.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async /home2/nepaquar/backend/src/controllers/staff.controller.js:5:46 {
  code: 'P6000',
  meta: {
    modelName: 'Staff',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=1&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/day/2026-08-21?page=1&limit=100 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.count()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:45:28

  42 
  43 const { page, limit } = pagination;
  44 const [total, data] = await prisma.$transaction([
→ 45   prisma.dailyTripRecord.count(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862) {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=7&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/trips/summary?month=2&year=2026&datePage=1&dateLimit=1000&driverPage=1&driverLimit=1000 PrismaClientKnownRequestError: 
Invalid `prisma.dailyTripRecord.findMany()` invocation in
/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:48

  77 const monthlySummary = async (orgId, filters) => {
  78   const where = buildMonthlyWhere(orgId, filters);
  79 
→ 80   const records = await prisma.dailyTripRecord.findMany(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.monthlySummary (/home2/nepaquar/backend/src/services/raw-material-trip-entry.service.js:80:19)
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:38:19
    at async /home2/nepaquar/backend/src/controllers/raw-material-trip-entry.controller.js:5:20 {
  code: 'P6000',
  meta: {
    modelName: 'DailyTripRecord',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
[error] GET /api/auth/me PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.getCurrentSession (/home2/nepaquar/backend/src/services/auth.service.js:182:18)
    at async me (/home2/nepaquar/backend/src/controllers/auth.controller.js:31:21) {
  code: 'P6000',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6000',
    message: 'Accelerate experienced an error communicating with your Query Engine. Please contact Prisma support if this error persists.'
  },
  clientVersion: '7.9.1'
}
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:401:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:725:22)
    at Object.keyGenerator (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:835:20)
    at /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:925:32
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:878:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
[error] POST /api/auth/login PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate was not able to connect to your database. The underlying error is: fork/exec prisma/7.9.1/query-plan-executor: exec format error
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.login (/home2/nepaquar/backend/src/services/auth.service.js:91:18)
    at async login (/home2/nepaquar/backend/src/controllers/auth.controller.js:10:33) {
  code: 'P6008',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6008',
    message: 'Accelerate was not able to connect to your database. The underlying error is: fork/exec prisma/7.9.1/query-plan-executor: exec format error'
  },
  clientVersion: '7.9.1'
}
[error] POST /api/auth/login PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate was not able to connect to your database. The underlying error is: fork/exec prisma/7.9.1/query-plan-executor: exec format error
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.login (/home2/nepaquar/backend/src/services/auth.service.js:91:18)
    at async login (/home2/nepaquar/backend/src/controllers/auth.controller.js:10:33) {
  code: 'P6008',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6008',
    message: 'Accelerate was not able to connect to your database. The underlying error is: fork/exec prisma/7.9.1/query-plan-executor: exec format error'
  },
  clientVersion: '7.9.1'
}
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:401:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:725:22)
    at Object.keyGenerator (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:835:20)
    at /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:925:32
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:878:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
[error] POST /api/auth/login PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate was not able to connect to your database. The underlying error is: failed to download after 5 attempts: failed to decompress and write file: net/http: request canceled (Client.Timeout or context cancellation while reading body)
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.login (/home2/nepaquar/backend/src/services/auth.service.js:91:18)
    at async login (/home2/nepaquar/backend/src/controllers/auth.controller.js:10:33) {
  code: 'P6008',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6008',
    message: 'Accelerate was not able to connect to your database. The underlying error is: failed to download after 5 attempts: failed to decompress and write file: net/http: request canceled (Client.Timeout or context cancellation while reading body)'
  },
  clientVersion: '7.9.1'
}
[error] POST /api/auth/login PrismaClientKnownRequestError: 
Invalid `prisma.organizationMember.findFirst()` invocation in
/home2/nepaquar/backend/src/services/auth.service.js:61:29

  58 };
  59 
  60 const findActiveMember = (where) =>
→ 61   prisma.organizationMember.findFirst(
Accelerate was not able to connect to your database. The underlying error is: failed to download after 5 attempts: failed to decompress and write file: net/http: request canceled (Client.Timeout or context cancellation while reading body)
    at Jr.handleRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:8286)
    at Jr.handleAndLogRequestError (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7581)
    at Jr.request (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:65:7288)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:99:6862)
    at async Object.login (/home2/nepaquar/backend/src/services/auth.service.js:91:18)
    at async login (/home2/nepaquar/backend/src/controllers/auth.controller.js:10:33) {
  code: 'P6008',
  meta: {
    modelName: 'OrganizationMember',
    code: 'P6008',
    message: 'Accelerate was not able to connect to your database. The underlying error is: failed to download after 5 attempts: failed to decompress and write file: net/http: request canceled (Client.Timeout or context cancellation while reading body)'
  },
  clientVersion: '7.9.1'
}
/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:57
`}var _r=class e{#e;#t;#r;#n;#i;constructor(t,r,n){this.#e=t,this.#t=r,this.#r=n,this.#n=r.getConnectionInfo?.(),this.#i=Lt.forSql({onQuery:this.#e.onQuery,tracingHelper:this.#e.tracingHelper,provider:this.#e.provider,connectionInfo:this.#n})}static async connect(t){let r,n;try{r=await t.driverAdapterFactory.connect(),n=new jt({driverAdapter:r,transactionOptions:t.transactionOptions,tracingHelper:t.tracingHelper,onQuery:t.onQuery,provider:t.provider})}catch(i){throw await r?.dispose(),i}return new e(t,r,n)}getConnectionInfo(){let t=this.#n??{supportsRelationJoins:!1};return Promise.resolve({provider:this.#t.provider,connectionInfo:t})}async execute({plan:t,placeholderValues:r,transaction:n,batchIndex:i,queryInfo:o}){let s=n?await this.#r.getTransaction(n,i!==void 0?"batch query":"query"):this.#t;return await this.#i.run(t,{queryable:s,transactionManager:n?{enabled:!1}:{enabled:!0,manager:this.#r},scope:r,sqlCommenter:this.#e.sqlCommenters&&{plugins:this.#e.sqlCommenters,queryInfo:o}})}async startTransaction(t){return{...await this.#r.startTransaction(t),payload:void 0}}async commitTransaction(t){await this.#r.commitTransaction(t.id)}async rollbackTransaction(t){await this.#r.rollbackTransaction(t.id)}async disconnect(){try{await this.#r.cancelAllTransactions()}finally{await this.#t.dispose()}}apiKey(){return null}};var $r=class{#e;#t;#r;constructor(t=1e3){this.#e=new Map,this.#t=new Map,this.#r=t}getSingle(t){let r=this.#e.get(t);return r&&(this.#e.delete(t),this.#e.set(t,r)),r}setSingle(t,r){if(this.#e.has(t)){this.#e.delete(t),this.#e.set(t,r);return}if(this.#e.size>=this.#r){let n=this.#e.keys().next().value;n!==void 0&&this.#e.delete(n)}this.#e.set(t,r)}getBatch(t){let r=this.#t.get(t);return r&&(this.#t.delete(t),this.#t.set(t,r)),r}setBatch(t,r){if(this.#t.has(t)){this.#t.delete(t),this.#t.set(t,r);return}if(this.#t.size>=this.#r){let n=this.#t.keys().next().value;n!==void 0&&this.#t.delete(n)}this.#t.set(t,r)}clear(){this.#e.clear(),this.#t.clear()}get size(){return this.#e.size+this.#t.size}get singleCacheSize(){return this.#e.size}get batchCacheSize(){return this.#t.size}};var nl=require("@prisma/client-runtime-utils");var Lr=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function Ya(e,t,r){let n=r||{},i=n.encode||encodeURIComponent;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Lr.test(e))throw new TypeError("argument name is invalid");let o=i(t);if(o&&!Lr.test(o))throw new TypeError("argument val is invalid");let s=e+"="+o;if(n.maxAge!==void 0&&n.maxAge!==null){let a=n.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(n.domain){if(!Lr.test(n.domain))throw new TypeError("option domain is invalid");s+="; Domain="+n.domain}if(n.path){if(!Lr.test(n.path))throw new TypeError("option path is invalid");s+="; Path="+n.path}if(n.expires){if(!pm(n.expires)||Number.isNaN(n.expires.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():n.priority){case"low":{s+="; Priority=Low";break}case"medium":{s+="; Priority=Medium";break}case"high":{s+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:{s+="; SameSite=Strict";break}case"lax":{s+="; SameSite=Lax";break}case"strict":{s+="; SameSite=Strict";break}case"none":{s+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(s+="; Partitioned"),s}function pm(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function Xa(e,t){let r=(e||"").split(";").filter(l=>typeof l=="string"&&!!l.trim()),n=r.shift()||"",i=dm(n),o=i.name,s=i.value;try{s=t?.decode===!1?s:(t?.decode||decodeURIComponent)(s)}catch{}let a={name:o,value:s};for(let l of r){let u=l.split("="),c=(u.shift()||"").trimStart().toLowerCase(),p=u.join("=");switch(c){case"expires":{a.expires=new Date(p);break}case"max-age":{a.maxAge=Number.parseInt(p,10);break}case"secure":{a.secure=!0;break}case"httponly":{a.httpOnly=!0;break}case"samesite":{a.sameSite=p;break}default:a[c]=p}}return a}function dm(e){let t="",r="",n=e.split("=");return n.length>1?(t=n.shift(),r=n.join("=")):r=e,{name:t,value:r}}var Vr=class extends Error{clientVersion;cause;constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var qr=class extends Vr{isRetryable;constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};function el(e,t){return{...e,isRetryable:t}}var ke=class extends qr{name="InvalidDatasourceError";code="P6001";constructor(t,r){super(t,el(r,!1))}};yt(ke,"InvalidDatasourceError");function tl(e){let t={clientVersion:e.clientVersion},r;try{r=new URL(e.accelerateUrl)}catch(l){let u=l.message;throw new ke(`Error validating \`accelerateUrl\`, the URL cannot be parsed, reason: ${u}`,t)}let{protocol:n,searchParams:i}=r;if(n!=="prisma:"&&n!==zt)throw new ke("Error validating `accelerateUrl`: the URL must start with the protocol `prisma://` or `prisma+postgres://`",t);let o=i.get("api_key");if(o===null||o.length<1)throw new ke("Error validating `accelerateUrl`: the URL must contain a valid API key",t);let s=Xr(r)?"http:":"https:";process.env.TEST_CLIENT_ENGINE_REMOTE_EXECUTOR&&r.searchParams.has("use_http")&&(s="http:");let a=new URL(r.href.replace(n,s));return{apiKey:o,url:a}}var rl=B(Di()),jr=class{apiKey;tracingHelper;logLevel;logQueries;engineHash;constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,transactionId:r}={}){let n={Accept:"application/json",Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json","Prisma-Engine-Hash":this.engineHash,"Prisma-Engine-Version":rl.enginesVersion};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-Transaction-Id"]=r);let i=this.#e();return i.length>0&&(n["X-Capture-Telemetry"]=i.join(", ")),n}#e(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}};function mm(e){return e[0]*1e3+e[1]/1e6}function ii(e){return new Date(mm(e))}var il=_("prisma:client:clientEngine:remoteExecutor"),Ur=class{#e;#t;#r;#n;#i;#o;constructor(t){this.#e=t.clientVersion,this.#n=t.logEmitter,this.#i=t.tracingHelper,this.#o=t.sqlCommenters;let{url:r,apiKey:n}=tl({clientVersion:t.clientVersion,accelerateUrl:t.accelerateUrl});this.#r=new oi(r),this.#t=new jr({apiKey:n,engineHash:t.clientVersion,logLevel:t.logLevel,logQueries:t.logQueries,tracingHelper:t.tracingHelper})}async getConnectionInfo(){return await this.#s({path:"/connection-info",method:"GET"})}async execute({plan:t,placeholderValues:r,batchIndex:n,model:i,operation:o,transaction:s,customFetch:a,queryInfo:l}){let u=l&&this.#o?.length?br(this.#o,{query:l}):void 0;return(await this.#s({path:s?`/transaction/${s.id}/query`:"/query",method:"POST",body:{model:i,operation:o,plan:t,params:r,comments:u&&Object.keys(u).length>0?u:void 0},batchRequestIdx:n,fetch:a})).data}async startTransaction(t){return{...await this.#s({path:"/transaction/start",method:"POST",body:t}),payload:void 0}}async commitTransaction(t){await this.#s({path:`/transaction/${t.id}/commit`,method:"POST"})}async rollbackTransaction(t){await this.#s({path:`/transaction/${t.id}/rollback`,method:"POST"})}disconnect(){return Promise.resolve()}apiKey(){return this.#t.apiKey}async#s({path:t,method:r,body:n,fetch:i=globalThis.fetch,batchRequestIdx:o}){let s=await this.#r.request({method:r,path:t,headers:this.#t.build(),body:n,fetch:i});s.ok||await this.#a(s,o);let a=await s.json();return typeof a.extensions=="object"&&a.extensions!==null&&this.#l(a.extensions),a}async#a(t,r){let n=t.headers.get("Prisma-Error-Code"),i=await t.text(),o,s=i;try{o=JSON.parse(i)}catch{o={}}typeof o.code=="string"&&(n=o.code),typeof o.error=="string"?s=o.error:typeof o.message=="string"?s=o.message:typeof o.InvalidRequestError=="object"&&o.InvalidRequestError!==null&&typeof o.InvalidRequestError.reason=="string"&&(s=o.InvalidRequestError.reason),s=s||`HTTP ${t.status}: ${t.statusText}`;let a=typeof o.meta=="object"&&o.meta!==null?o.meta:o;throw new nl.PrismaClientKnownRequestError(s,{clientVersion:this.#e,code:n??"P6000",batchRequestIdx:r,meta:a})}#l(t){if(t.logs)for(let r of t.logs)this.#u(r);t.spans&&this.#i.dispatchEngineSpans(t.spans)}#u(t){switch(t.level){case"debug":case"trace":il(t);break;case"error":case"warn":case"info":{this.#n.emit(t.level,{timestamp:ii(t.timestamp),message:t.attributes.message??"",target:t.target??"RemoteExecutor"});break}case"query":{this.#n.emit("query",{query:t.attributes.query??"",timestamp:ii(t.timestamp),duration:t.attributes.duration_ms??0,params:t.attributes.params??"",target:t.target??"RemoteExecutor"});break}default:throw new Error(`Unexpected log level: ${t.level}`)}}},oi=class{#e;#t;#r;constructor(t){this.#e=t,this.#t=new Map}async request({method:t,path:r,headers:n,body:i,fetch:o}){let s=new URL(r,this.#e),a=this.#n(s);a&&(n.Cookie=a),this.#r&&(n["Accelerate-Query-Engine-Jwt"]=this.#r);let l=await o(s.href,{method:t,body:i!==void 0?JSON.stringify(i):void 0,headers:n});return il(t,s,l.status,l.statusText),this.#r=l.headers.get("Accelerate-Query-Engine-Jwt")??void 0,this.#i(s,l),l}#n(t){let r=[],n=new Date;for(let[i,o]of this.#t){if(o.expires&&o.expires<n){this.#t.delete(i);continue}let s=o.domain??t.hostname,a=o.path??"/";t.hostname.endsWith(s)&&t.pathname.startsWith(a)&&r.push(Ya(o.name,o.value))}return r.length>0?r.join("; "):void 0}#i(t,r){let n=r.headers.getSetCookie?.()||[];if(n.length===0){let i=r.headers.get("Set-Cookie");i&&n.push(i)}for(let i of n){let o=Xa(i),s=o.domain??t.hostname,a=o.path??"/",l=`${s}:${a}:${o.name}`;this.#t.set(l,{name:o.name,value:o.value,domain:s,path:a,expires:o.expires})}}};var ai=require("@prisma/client-runtime-utils"),si={},ol={async loadQueryCompiler(e){let{clientVersion:t,compilerWasm:r}=e;if(r===void 0)throw new ai.PrismaClientInitializationError("WASM query compiler was unexpectedly `undefined`",t);let n;return e.activeProvider===void 0||si[e.activeProvider]===void 0?(n=(async()=>{let i=await r.getRuntime(),o=await r.getQueryCompilerWasmModule();if(o==null)throw new ai.PrismaClientInitializationError("The loaded wasm module was unexpectedly `undefined` or `null` once loaded",t);let s={[r.importName]:i},a=new WebAssembly.Instance(o,s),l=a.exports.__wbindgen_start;return i.__wbg_set_wasm(a.exports),l(),i.QueryCompiler})(),e.activeProvider!==void 0&&(si[e.activeProvider]=n)):n=si[e.activeProvider],await n}};var fm="P2038",ce=_("prisma:client:clientEngine"),ul=globalThis;ul.PRISMA_WASM_PANIC_REGISTRY={set_message(e){throw new F.PrismaClientRustPanicError(e,Fr)}};var Ut=class{name="ClientEngine";#e;#t={type:"disconnected"};#r;#n;#i;#o;config;datamodel;logEmitter;logQueries;logLevel;tracingHelper;#s;constructor(t,r){if(t.accelerateUrl!==void 0)this.#n={remote:!0,accelerateUrl:t.accelerateUrl};else if(t.adapter)this.#n={remote:!1,driverAdapterFactory:t.adapter},ce("Using driver adapter: %O",t.adapter);else throw new F.PrismaClientInitializationError("PrismaClient requires a driver adapter to connect to your database, but none was provided. Pass one to the PrismaClient constructor, e.g. `new PrismaClient({ adapter })`. Learn more: https://pris.ly/d/driver-adapters",t.clientVersion,fm);this.#r=r??ol,this.config=t,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,this.tracingHelper=t.tracingHelper,this.#i=t.queryPlanCacheMaxSize===0?void 0:new $r(t.queryPlanCacheMaxSize),this.#o=qt.deserialize(t.parameterizationSchema,n=>{if(!Object.hasOwn(t.runtimeDataModel.enums,n))return;let i={};for(let o of t.runtimeDataModel.enums[n].values)i[o.name]=o.dbName??o.name;return i}),t.enableDebugLogs&&(this.logLevel="debug"),this.logQueries&&(this.#s=n=>{this.logEmitter.emit("query",{...n,params:K(n.params),target:"ClientEngine"})})}async#a(){switch(this.#t.type){case"disconnected":{let t=this.tracingHelper.runInChildSpan("connect",async()=>{let r,n;try{r=await this.#l(),n=await this.#u(r)}catch(o){throw this.#t={type:"disconnected"},n?.free(),await r?.disconnect(),o}let i={executor:r,queryCompiler:n};return this.#t={type:"connected",engine:i},i});return this.#t={type:"connecting",promise:t},await t}case"connecting":return await this.#t.promise;case"connected":return this.#t.engine;case"disconnecting":return await this.#t.promise,await this.#a()}}async#l(){return this.#n.remote?new Ur({clientVersion:this.config.clientVersion,accelerateUrl:this.#n.accelerateUrl,logEmitter:this.logEmitter,logLevel:this.logLevel,logQueries:this.logQueries,tracingHelper:this.tracingHelper,sqlCommenters:this.config.sqlCommenters}):await _r.connect({driverAdapterFactory:this.#n.driverAdapterFactory,tracingHelper:this.tracingHelper,transactionOptions:{...this.config.transactionOptions,isolationLevel:this.#y(this.config.transactionOptions.isolationLevel)},onQuery:this.#s,provider:this.config.activeProvider,sqlCommenters:this.config.sqlCommenters})}async#u(t){let r=this.#e;r===void 0&&(r=await this.#r.loadQueryCompiler(this.config),this.#e=r);let{provider:n,connectionInfo:i}=await t.getConnectionInfo();try{return this.#m(()=>new r({datamodel:this.datamodel,provider:n,connectionInfo:i}),void 0,!1)}catch(o){throw this.#p(o)}}#p(t){if(t instanceof F.PrismaClientRustPanicError)return t;try{let r=JSON.parse(t.message);return new F.PrismaClientInitializationError(r.message,this.config.clientVersion,r.error_code)}catch{return t}}#c(t,r){if(t instanceof F.PrismaClientInitializationError)return t;if(t.code==="GenericFailure"&&t.message?.startsWith("PANIC:"))return new F.PrismaClientRustPanicError(sl(this,t.message,r),this.config.clientVersion);if(t instanceof O)return new F.PrismaClientKnownRequestError(t.message,{code:t.code,meta:t.meta,clientVersion:this.config.clientVersion});try{let n=JSON.parse(t);return new F.PrismaClientUnknownRequestError(`${n.message}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

PrismaClientKnownRequestError: Accelerate was not able to connect to your database. The underlying error is: failed to download after 5 attempts: failed to decompress and write file: net/http: request canceled (Client.Timeout or context cancellation while reading body)
    at #a (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:57:8500)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async #s (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:57:7908)
    at async Ur.getConnectionInfo (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:57:6936)
    at async #u (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:57:13532)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/@prisma/client/runtime/client.js:57:12434 {
  code: 'P6008',
  meta: {
    code: 'P6008',
    message: 'Accelerate was not able to connect to your database. The underlying error is: failed to download after 5 attempts: failed to decompress and write file: net/http: request canceled (Client.Timeout or context cancellation while reading body)'
  },
  clientVersion: '7.9.1'
}

Node.js v22.23.2
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:401:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:725:22)
    at Object.keyGenerator (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:835:20)
    at /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:925:32
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:878:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:401:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:725:22)
    at Object.keyGenerator (/home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:835:20)
    at /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:925:32
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async /home2/nepaquar/nodevenv/backend/22/lib/node_modules/express-rate-limit/dist/index.cjs:878:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
