{
  "errorId": "ERR_1769329800075_uvbiq0z0g",
  "timestamp": "2026-01-25T08:30:00.075Z",
  "message": "",
  "stack": "SequelizeConnectionRefusedError\n    at ConnectionManager.connect (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\connection-manager.js:92:17)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async ConnectionManager._connect (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:222:24)",
  "name": "SequelizeConnectionRefusedError",
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87781376,
      "heapTotal": 39890944,
      "heapUsed": 34048248,
      "external": 2365114,
      "arrayBuffers": 44697
    },
    "uptime": 2235.8087296
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769329944920_8csyrqg32",
  "timestamp": "2026-01-25T08:32:24.920Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 148697088,
      "heapTotal": 103591936,
      "heapUsed": 37130600,
      "external": 2376156,
      "arrayBuffers": 77452
    },
    "uptime": 10.7033687
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769329980198_36pyfuber",
  "timestamp": "2026-01-25T08:33:00.198Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 81707008,
      "heapTotal": 34385920,
      "heapUsed": 31658952,
      "external": 2343480,
      "arrayBuffers": 25605
    },
    "uptime": 45.9807987
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330040075_k6xqqcqg4",
  "timestamp": "2026-01-25T08:34:00.075Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82685952,
      "heapTotal": 34910208,
      "heapUsed": 32228680,
      "external": 2351620,
      "arrayBuffers": 33745
    },
    "uptime": 105.8576705
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330100062_6ixaiace1",
  "timestamp": "2026-01-25T08:35:00.062Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83709952,
      "heapTotal": 34385920,
      "heapUsed": 32863968,
      "external": 2351922,
      "arrayBuffers": 34047
    },
    "uptime": 165.8441917
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330160067_68p3i6sre",
  "timestamp": "2026-01-25T08:36:00.067Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84488192,
      "heapTotal": 34910208,
      "heapUsed": 33577968,
      "external": 2352047,
      "arrayBuffers": 34172
    },
    "uptime": 225.8496805
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330220056_i9oh7lpnl",
  "timestamp": "2026-01-25T08:37:00.056Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84955136,
      "heapTotal": 35434496,
      "heapUsed": 33981712,
      "external": 2360364,
      "arrayBuffers": 42489
    },
    "uptime": 285.838079
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330280042_1nbzlszxw",
  "timestamp": "2026-01-25T08:38:00.042Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85311488,
      "heapTotal": 36220928,
      "heapUsed": 34613272,
      "external": 2360489,
      "arrayBuffers": 42614
    },
    "uptime": 345.824608
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330340046_2f3l4w56n",
  "timestamp": "2026-01-25T08:39:00.046Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86859776,
      "heapTotal": 37793792,
      "heapUsed": 35324944,
      "external": 2360630,
      "arrayBuffers": 42755
    },
    "uptime": 405.82852
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330400062_cqv7ttu60",
  "timestamp": "2026-01-25T08:40:00.062Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86290432,
      "heapTotal": 37531648,
      "heapUsed": 35789000,
      "external": 2368931,
      "arrayBuffers": 51056
    },
    "uptime": 465.8443944
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330460037_pd8fzkfzw",
  "timestamp": "2026-01-25T08:41:00.037Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87556096,
      "heapTotal": 38318080,
      "heapUsed": 36365576,
      "external": 2369056,
      "arrayBuffers": 51181
    },
    "uptime": 525.8192699
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330520061_bfkq1l7ev",
  "timestamp": "2026-01-25T08:42:00.061Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87826432,
      "heapTotal": 39104512,
      "heapUsed": 36907200,
      "external": 2369181,
      "arrayBuffers": 51306
    },
    "uptime": 585.8436375
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330580057_mi7bp4dyk",
  "timestamp": "2026-01-25T08:43:00.057Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89329664,
      "heapTotal": 40677376,
      "heapUsed": 37550320,
      "external": 2377514,
      "arrayBuffers": 59639
    },
    "uptime": 645.8392637
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330640058_upu16dtwa",
  "timestamp": "2026-01-25T08:44:00.058Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88985600,
      "heapTotal": 40153088,
      "heapUsed": 37948512,
      "external": 2377623,
      "arrayBuffers": 59748
    },
    "uptime": 705.8397893
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330700050_is4wrvhmk",
  "timestamp": "2026-01-25T08:45:00.050Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90112000,
      "heapTotal": 40939520,
      "heapUsed": 38471712,
      "external": 2385940,
      "arrayBuffers": 68065
    },
    "uptime": 765.8326924
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330760050_ff6mz2kgb",
  "timestamp": "2026-01-25T08:46:00.050Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90300416,
      "heapTotal": 41463808,
      "heapUsed": 38995800,
      "external": 2386065,
      "arrayBuffers": 68190
    },
    "uptime": 825.8328396
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330820056_mh1t52gdn",
  "timestamp": "2026-01-25T08:47:00.056Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91742208,
      "heapTotal": 43036672,
      "heapUsed": 39648848,
      "external": 2386206,
      "arrayBuffers": 68331
    },
    "uptime": 885.838244
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330880052_u8qgozqmd",
  "timestamp": "2026-01-25T08:48:00.052Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91385856,
      "heapTotal": 42512384,
      "heapUsed": 40043728,
      "external": 2394507,
      "arrayBuffers": 76632
    },
    "uptime": 945.8335333
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769330940048_wzc13lqhe",
  "timestamp": "2026-01-25T08:49:00.047Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91443200,
      "heapTotal": 37269504,
      "heapUsed": 32783568,
      "external": 2351885,
      "arrayBuffers": 34010
    },
    "uptime": 1005.8294226
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331000039_r9qy2lk6a",
  "timestamp": "2026-01-25T08:50:00.038Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91877376,
      "heapTotal": 38580224,
      "heapUsed": 33374176,
      "external": 2352155,
      "arrayBuffers": 34280
    },
    "uptime": 1065.8211018
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331060045_m9smobg5z",
  "timestamp": "2026-01-25T08:51:00.045Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91258880,
      "heapTotal": 39104512,
      "heapUsed": 34025056,
      "external": 2360472,
      "arrayBuffers": 42597
    },
    "uptime": 1125.8279937
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331120069_pompypzdu",
  "timestamp": "2026-01-25T08:52:00.069Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91529216,
      "heapTotal": 39628800,
      "heapUsed": 34421840,
      "external": 2360597,
      "arrayBuffers": 42722
    },
    "uptime": 1185.8507958
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331180044_0og8u4tca",
  "timestamp": "2026-01-25T08:53:00.044Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91267072,
      "heapTotal": 40153088,
      "heapUsed": 34956256,
      "external": 2360722,
      "arrayBuffers": 42847
    },
    "uptime": 1245.8264165
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331240073_ppx3vvn2s",
  "timestamp": "2026-01-25T08:54:00.073Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92295168,
      "heapTotal": 39628800,
      "heapUsed": 35593528,
      "external": 2369055,
      "arrayBuffers": 51180
    },
    "uptime": 1305.8552031
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331300068_yg8a3457w",
  "timestamp": "2026-01-25T08:55:00.068Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91844608,
      "heapTotal": 40153088,
      "heapUsed": 35992912,
      "external": 2369164,
      "arrayBuffers": 51289
    },
    "uptime": 1365.8502661
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331360037_nfb6maknk",
  "timestamp": "2026-01-25T08:56:00.037Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91955200,
      "heapTotal": 40939520,
      "heapUsed": 36515376,
      "external": 2377481,
      "arrayBuffers": 59606
    },
    "uptime": 1425.8189889
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331420073_6rl8iy9cc",
  "timestamp": "2026-01-25T08:57:00.073Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91389952,
      "heapTotal": 41463808,
      "heapUsed": 37042160,
      "external": 2377606,
      "arrayBuffers": 59731
    },
    "uptime": 1485.8550667
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331480270_yfbmpk6ts",
  "timestamp": "2026-01-25T08:58:00.270Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92520448,
      "heapTotal": 43036672,
      "heapUsed": 37691776,
      "external": 2377747,
      "arrayBuffers": 59872
    },
    "uptime": 1546.0517925
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331540299_n245f89x5",
  "timestamp": "2026-01-25T08:59:00.299Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92033024,
      "heapTotal": 42512384,
      "heapUsed": 38084864,
      "external": 2386048,
      "arrayBuffers": 68173
    },
    "uptime": 1606.0812774
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331600068_zjl6bykx4",
  "timestamp": "2026-01-25T09:00:00.068Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92471296,
      "heapTotal": 43298816,
      "heapUsed": 38607136,
      "external": 2386173,
      "arrayBuffers": 68298
    },
    "uptime": 1665.8503235
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331660125_xhtjtigi2",
  "timestamp": "2026-01-25T09:01:00.125Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 93061120,
      "heapTotal": 43823104,
      "heapUsed": 39134160,
      "external": 2386298,
      "arrayBuffers": 68423
    },
    "uptime": 1725.9074141
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331720057_6hypa7wqm",
  "timestamp": "2026-01-25T09:02:00.057Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89968640,
      "heapTotal": 45395968,
      "heapUsed": 39775760,
      "external": 2394631,
      "arrayBuffers": 76756
    },
    "uptime": 1785.8392998
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331780059_i7z1qctgu",
  "timestamp": "2026-01-25T09:03:00.059Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89956352,
      "heapTotal": 44871680,
      "heapUsed": 40171648,
      "external": 2394740,
      "arrayBuffers": 76865
    },
    "uptime": 1845.8416719
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331840102_dgca7iy4u",
  "timestamp": "2026-01-25T09:04:00.102Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90509312,
      "heapTotal": 45395968,
      "heapUsed": 40701360,
      "external": 2394865,
      "arrayBuffers": 76990
    },
    "uptime": 1905.8847181
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331910098_5gx632u0j",
  "timestamp": "2026-01-25T09:05:10.098Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 149102592,
      "heapTotal": 105426944,
      "heapUsed": 35615576,
      "external": 2343765,
      "arrayBuffers": 45061
    },
    "uptime": 28.9047475
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769331960091_ev3xziejd",
  "timestamp": "2026-01-25T09:06:00.091Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 150290432,
      "heapTotal": 105426944,
      "heapUsed": 38337640,
      "external": 2379790,
      "arrayBuffers": 61915
    },
    "uptime": 78.8531894
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332020123_trlsxmxzt",
  "timestamp": "2026-01-25T09:07:00.123Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85090304,
      "heapTotal": 37269504,
      "heapUsed": 33584872,
      "external": 2351745,
      "arrayBuffers": 33870
    },
    "uptime": 138.884799
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332080159_lb1injni7",
  "timestamp": "2026-01-25T09:08:00.159Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92540928,
      "heapTotal": 41463808,
      "heapUsed": 36250224,
      "external": 2354000,
      "arrayBuffers": 36125
    },
    "uptime": 198.9204258
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332140156_sxcoswoi8",
  "timestamp": "2026-01-25T09:09:00.156Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92528640,
      "heapTotal": 42512384,
      "heapUsed": 37452048,
      "external": 2362442,
      "arrayBuffers": 44567
    },
    "uptime": 258.9174055
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332200048_54ap7i98c",
  "timestamp": "2026-01-25T09:10:00.048Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92598272,
      "heapTotal": 42512384,
      "heapUsed": 37995592,
      "external": 2362567,
      "arrayBuffers": 44692
    },
    "uptime": 318.8090025
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332260059_3enycahap",
  "timestamp": "2026-01-25T09:11:00.059Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 95285248,
      "heapTotal": 45133824,
      "heapUsed": 43017168,
      "external": 2398469,
      "arrayBuffers": 80594
    },
    "uptime": 378.8206811
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332306010_fvef5tj8v",
  "timestamp": "2026-01-25T09:11:46.009Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 150241280,
      "heapTotal": 104902656,
      "heapUsed": 35371584,
      "external": 2343518,
      "arrayBuffers": 44814
    },
    "uptime": 7.7456421
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332320071_zxjcpg13r",
  "timestamp": "2026-01-25T09:12:00.071Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 151461888,
      "heapTotal": 104902656,
      "heapUsed": 38118272,
      "external": 2379788,
      "arrayBuffers": 61913
    },
    "uptime": 21.8069932
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332345133_oiv5ww95s",
  "timestamp": "2026-01-25T09:12:25.133Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 149487616,
      "heapTotal": 105426944,
      "heapUsed": 35324456,
      "external": 2343518,
      "arrayBuffers": 44814
    },
    "uptime": 6.5143627
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332380080_w5d9m76k8",
  "timestamp": "2026-01-25T09:13:00.080Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82808832,
      "heapTotal": 37531648,
      "heapUsed": 32268056,
      "external": 2343480,
      "arrayBuffers": 25605
    },
    "uptime": 41.4606432
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332440093_elgwx3vz3",
  "timestamp": "2026-01-25T09:14:00.093Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86114304,
      "heapTotal": 37007360,
      "heapUsed": 34526520,
      "external": 2360016,
      "arrayBuffers": 42141
    },
    "uptime": 101.4738758
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332500070_9c85n5et6",
  "timestamp": "2026-01-25T09:15:00.070Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92450816,
      "heapTotal": 41725952,
      "heapUsed": 39120304,
      "external": 2409918,
      "arrayBuffers": 92043
    },
    "uptime": 161.4503637
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332560037_7o31hami9",
  "timestamp": "2026-01-25T09:16:00.037Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 93802496,
      "heapTotal": 40939520,
      "heapUsed": 34932952,
      "external": 2378101,
      "arrayBuffers": 60226
    },
    "uptime": 221.4174993
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332620041_c9v5s93df",
  "timestamp": "2026-01-25T09:17:00.041Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 93220864,
      "heapTotal": 40939520,
      "heapUsed": 35048928,
      "external": 2384689,
      "arrayBuffers": 66814
    },
    "uptime": 281.4223853
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332680183_eistra0yu",
  "timestamp": "2026-01-25T09:18:00.183Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 93376512,
      "heapTotal": 43036672,
      "heapUsed": 36922512,
      "external": 2393256,
      "arrayBuffers": 75381
    },
    "uptime": 341.5642847
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332740050_8dlfl32xn",
  "timestamp": "2026-01-25T09:19:00.050Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 93286400,
      "heapTotal": 43560960,
      "heapUsed": 39128416,
      "external": 2418207,
      "arrayBuffers": 100332
    },
    "uptime": 401.4315902
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332800231_i79x4vu3i",
  "timestamp": "2026-01-25T09:20:00.231Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 94789632,
      "heapTotal": 45920256,
      "heapUsed": 39681656,
      "external": 2418155,
      "arrayBuffers": 100280
    },
    "uptime": 461.6122541
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332860261_cswumxwb8",
  "timestamp": "2026-01-25T09:21:00.261Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97075200,
      "heapTotal": 46444544,
      "heapUsed": 42356528,
      "external": 2443945,
      "arrayBuffers": 126070
    },
    "uptime": 521.6447823
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332920056_xst1obqbw",
  "timestamp": "2026-01-25T09:22:00.056Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 98349056,
      "heapTotal": 44609536,
      "heapUsed": 35211680,
      "external": 2386543,
      "arrayBuffers": 68668
    },
    "uptime": 581.4371233
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769332980058_9jma9t21l",
  "timestamp": "2026-01-25T09:23:00.058Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 98091008,
      "heapTotal": 45920256,
      "heapUsed": 38291792,
      "external": 2401698,
      "arrayBuffers": 83823
    },
    "uptime": 641.4389815
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333040044_aibcc2det",
  "timestamp": "2026-01-25T09:24:00.044Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 98131968,
      "heapTotal": 46444544,
      "heapUsed": 39000232,
      "external": 2401823,
      "arrayBuffers": 83948
    },
    "uptime": 701.4248774
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333100069_6jjfff3k4",
  "timestamp": "2026-01-25T09:25:00.069Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 98107392,
      "heapTotal": 48017408,
      "heapUsed": 41243064,
      "external": 2434966,
      "arrayBuffers": 117091
    },
    "uptime": 761.4499141
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333160064_zjjwr3vo5",
  "timestamp": "2026-01-25T09:26:00.064Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97525760,
      "heapTotal": 40415232,
      "heapUsed": 31108344,
      "external": 2341931,
      "arrayBuffers": 25460
    },
    "uptime": 821.4444022
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333220047_f8wyp7iv1",
  "timestamp": "2026-01-25T09:27:00.047Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97808384,
      "heapTotal": 41725952,
      "heapUsed": 31729184,
      "external": 2342201,
      "arrayBuffers": 25730
    },
    "uptime": 881.4278002
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333280062_orue58lmc",
  "timestamp": "2026-01-25T09:28:00.062Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97804288,
      "heapTotal": 41988096,
      "heapUsed": 32310112,
      "external": 2350518,
      "arrayBuffers": 34047
    },
    "uptime": 941.4421063
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333340065_cbuqvv1kt",
  "timestamp": "2026-01-25T09:29:00.065Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 98869248,
      "heapTotal": 44609536,
      "heapUsed": 35891736,
      "external": 2390223,
      "arrayBuffers": 73752
    },
    "uptime": 1001.4463155
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333400060_6etd9db9m",
  "timestamp": "2026-01-25T09:30:00.060Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97701888,
      "heapTotal": 46182400,
      "heapUsed": 39352832,
      "external": 2397141,
      "arrayBuffers": 80670
    },
    "uptime": 1061.4414159
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333460046_df8p4ijbk",
  "timestamp": "2026-01-25T09:31:00.045Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97914880,
      "heapTotal": 38912000,
      "heapUsed": 30831088,
      "external": 2342130,
      "arrayBuffers": 25746
    },
    "uptime": 1121.4269117
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333520101_7u84li1tr",
  "timestamp": "2026-01-25T09:32:00.101Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97685504,
      "heapTotal": 39436288,
      "heapUsed": 31408968,
      "external": 2350447,
      "arrayBuffers": 34063
    },
    "uptime": 1181.4816571
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333580066_xzz530xfv",
  "timestamp": "2026-01-25T09:33:00.066Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97968128,
      "heapTotal": 39698432,
      "heapUsed": 32001192,
      "external": 2350572,
      "arrayBuffers": 34188
    },
    "uptime": 1241.4471159
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333640131_bsj469l1r",
  "timestamp": "2026-01-25T09:34:00.131Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 98516992,
      "heapTotal": 41271296,
      "heapUsed": 34190464,
      "external": 2367331,
      "arrayBuffers": 50947
    },
    "uptime": 1301.5119614
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333700087_ip95qb8hl",
  "timestamp": "2026-01-25T09:35:00.087Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 98959360,
      "heapTotal": 43892736,
      "heapUsed": 35553720,
      "external": 2375612,
      "arrayBuffers": 59228
    },
    "uptime": 1361.4686596
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333760048_o6aw3pmsg",
  "timestamp": "2026-01-25T09:36:00.048Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 98050048,
      "heapTotal": 42844160,
      "heapUsed": 36279296,
      "external": 2392282,
      "arrayBuffers": 75898
    },
    "uptime": 1421.4294856
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333820117_e387t6fdl",
  "timestamp": "2026-01-25T09:37:00.117Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97890304,
      "heapTotal": 43368448,
      "heapUsed": 36927112,
      "external": 2392407,
      "arrayBuffers": 76023
    },
    "uptime": 1481.4978369
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333880062_50r0ocb2h",
  "timestamp": "2026-01-25T09:38:00.062Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 99123200,
      "heapTotal": 38912000,
      "heapUsed": 31744584,
      "external": 2375806,
      "arrayBuffers": 60827
    },
    "uptime": 1541.4429498
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769333940088_nntf61wfz",
  "timestamp": "2026-01-25T09:39:00.088Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97832960,
      "heapTotal": 40484864,
      "heapUsed": 32224512,
      "external": 2375931,
      "arrayBuffers": 60952
    },
    "uptime": 1601.4688913
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334000081_iimry1gff",
  "timestamp": "2026-01-25T09:40:00.081Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 98627584,
      "heapTotal": 42057728,
      "heapUsed": 34272640,
      "external": 2384498,
      "arrayBuffers": 69519
    },
    "uptime": 1661.461709
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334060045_u5qzfhkp1",
  "timestamp": "2026-01-25T09:41:00.045Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 97894400,
      "heapTotal": 42582016,
      "heapUsed": 34797488,
      "external": 2384446,
      "arrayBuffers": 69467
    },
    "uptime": 1721.4253608
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334120064_mljuw7rnc",
  "timestamp": "2026-01-25T09:42:00.064Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 98402304,
      "heapTotal": 43106304,
      "heapUsed": 35434000,
      "external": 2392940,
      "arrayBuffers": 77961
    },
    "uptime": 1781.4459369
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334180084_cl96ig905",
  "timestamp": "2026-01-25T09:43:00.084Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 95195136,
      "heapTotal": 43630592,
      "heapUsed": 36007672,
      "external": 2393065,
      "arrayBuffers": 78086
    },
    "uptime": 1841.4651861
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334240056_fz2ew7cpd",
  "timestamp": "2026-01-25T09:44:00.056Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 94519296,
      "heapTotal": 44154880,
      "heapUsed": 36612152,
      "external": 2393190,
      "arrayBuffers": 78211
    },
    "uptime": 1901.4359907
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334300066_q62x5gq0z",
  "timestamp": "2026-01-25T09:45:00.066Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 94294016,
      "heapTotal": 44679168,
      "heapUsed": 37200848,
      "external": 2401507,
      "arrayBuffers": 86528
    },
    "uptime": 1961.4464299
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334360089_j0x53uzn5",
  "timestamp": "2026-01-25T09:46:00.089Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89100288,
      "heapTotal": 45203456,
      "heapUsed": 37811752,
      "external": 2401632,
      "arrayBuffers": 86653
    },
    "uptime": 2021.4700434
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334420193_z9589lc3r",
  "timestamp": "2026-01-25T09:47:00.193Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89792512,
      "heapTotal": 45727744,
      "heapUsed": 38392120,
      "external": 2409949,
      "arrayBuffers": 94970
    },
    "uptime": 2081.5737023
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334480065_wz5903cca",
  "timestamp": "2026-01-25T09:48:00.065Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89366528,
      "heapTotal": 45203456,
      "heapUsed": 39099448,
      "external": 2410090,
      "arrayBuffers": 95111
    },
    "uptime": 2141.445953
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334540055_02bvxb3l4",
  "timestamp": "2026-01-25T09:49:00.055Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89903104,
      "heapTotal": 39174144,
      "heapUsed": 32200504,
      "external": 2348974,
      "arrayBuffers": 33995
    },
    "uptime": 2201.4356538
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334600059_9boftgscs",
  "timestamp": "2026-01-25T09:50:00.059Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89907200,
      "heapTotal": 40484864,
      "heapUsed": 32796728,
      "external": 2349099,
      "arrayBuffers": 34120
    },
    "uptime": 2261.4403665
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334660054_tv0djmvp6",
  "timestamp": "2026-01-25T09:51:00.054Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89829376,
      "heapTotal": 42319872,
      "heapUsed": 34850504,
      "external": 2366035,
      "arrayBuffers": 51056
    },
    "uptime": 2321.4343264
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334720068_v76qrijlk",
  "timestamp": "2026-01-25T09:52:00.068Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89268224,
      "heapTotal": 42844160,
      "heapUsed": 35395192,
      "external": 2366160,
      "arrayBuffers": 51181
    },
    "uptime": 2381.4485541
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334780057_r6f26axm7",
  "timestamp": "2026-01-25T09:53:00.057Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89292800,
      "heapTotal": 43368448,
      "heapUsed": 35993808,
      "external": 2374477,
      "arrayBuffers": 59498
    },
    "uptime": 2441.4379799
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334840034_ioplo0ndz",
  "timestamp": "2026-01-25T09:54:00.034Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90046464,
      "heapTotal": 43892736,
      "heapUsed": 36591280,
      "external": 2374602,
      "arrayBuffers": 59623
    },
    "uptime": 2501.4146236
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334900048_5bkv6ohcz",
  "timestamp": "2026-01-25T09:55:00.048Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90120192,
      "heapTotal": 44417024,
      "heapUsed": 37193608,
      "external": 2374727,
      "arrayBuffers": 59748
    },
    "uptime": 2561.4292354
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769334960041_3c5ug2sz0",
  "timestamp": "2026-01-25T09:56:00.041Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89767936,
      "heapTotal": 44941312,
      "heapUsed": 37772704,
      "external": 2383044,
      "arrayBuffers": 68065
    },
    "uptime": 2621.4223408
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335020057_3q363rfrc",
  "timestamp": "2026-01-25T09:57:00.057Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90361856,
      "heapTotal": 45465600,
      "heapUsed": 38340808,
      "external": 2383169,
      "arrayBuffers": 68190
    },
    "uptime": 2681.4374296
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335080462_5ptcsvd7h",
  "timestamp": "2026-01-25T09:58:00.462Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89841664,
      "heapTotal": 45989888,
      "heapUsed": 38906240,
      "external": 2391486,
      "arrayBuffers": 76507
    },
    "uptime": 2741.8424391
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335140175_8aluohhu0",
  "timestamp": "2026-01-25T09:59:00.175Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89550848,
      "heapTotal": 38125568,
      "heapUsed": 30628904,
      "external": 2340709,
      "arrayBuffers": 25730
    },
    "uptime": 2801.5561198
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335200462_ryegdakw2",
  "timestamp": "2026-01-25T10:00:00.462Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90148864,
      "heapTotal": 39436288,
      "heapUsed": 31219560,
      "external": 2340834,
      "arrayBuffers": 25855
    },
    "uptime": 2861.8429178
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335260553_0zbjs1lkb",
  "timestamp": "2026-01-25T10:01:00.553Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90791936,
      "heapTotal": 39698432,
      "heapUsed": 31846968,
      "external": 2349151,
      "arrayBuffers": 34172
    },
    "uptime": 2921.93443
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335320096_hn1640c6z",
  "timestamp": "2026-01-25T10:02:00.096Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91074560,
      "heapTotal": 39960576,
      "heapUsed": 32433432,
      "external": 2349276,
      "arrayBuffers": 34297
    },
    "uptime": 2981.4774819
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335380067_tkle0g6w1",
  "timestamp": "2026-01-25T10:03:00.067Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90038272,
      "heapTotal": 40484864,
      "heapUsed": 33014568,
      "external": 2349279,
      "arrayBuffers": 34300
    },
    "uptime": 3041.4474846
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335440062_m41kimdsa",
  "timestamp": "2026-01-25T10:04:00.062Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90824704,
      "heapTotal": 42582016,
      "heapUsed": 37435184,
      "external": 2391111,
      "arrayBuffers": 76132
    },
    "uptime": 3101.4424669
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335500351_h0q0w87jt",
  "timestamp": "2026-01-25T10:05:00.351Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90918912,
      "heapTotal": 42319872,
      "heapUsed": 35997384,
      "external": 2373573,
      "arrayBuffers": 58594
    },
    "uptime": 3161.7320879
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335560870_3rz0nifc5",
  "timestamp": "2026-01-25T10:06:00.870Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 149106688,
      "heapTotal": 104640512,
      "heapUsed": 35478656,
      "external": 2348137,
      "arrayBuffers": 49433
    },
    "uptime": 17.9921398
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335620093_ybbscbagd",
  "timestamp": "2026-01-25T10:07:00.093Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84271104,
      "heapTotal": 35958784,
      "heapUsed": 32812520,
      "external": 2343480,
      "arrayBuffers": 25605
    },
    "uptime": 77.2147392
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335680082_u23q9rs1i",
  "timestamp": "2026-01-25T10:08:00.082Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 93536256,
      "heapTotal": 42250240,
      "heapUsed": 35479480,
      "external": 2343929,
      "arrayBuffers": 26054
    },
    "uptime": 137.2032875
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335740025_evlxped9z",
  "timestamp": "2026-01-25T10:09:00.025Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 96043008,
      "heapTotal": 44085248,
      "heapUsed": 40161568,
      "external": 2380697,
      "arrayBuffers": 62822
    },
    "uptime": 197.14657
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335769418_32yh94w6n",
  "timestamp": "2026-01-25T10:09:29.418Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 148779008,
      "heapTotal": 104116224,
      "heapUsed": 35372096,
      "external": 2348105,
      "arrayBuffers": 49401
    },
    "uptime": 13.7162574
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335800307_shwayyomx",
  "timestamp": "2026-01-25T10:10:00.307Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82468864,
      "heapTotal": 33337344,
      "heapUsed": 31620936,
      "external": 2351688,
      "arrayBuffers": 33813
    },
    "uptime": 44.6049907
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335860069_2pb8vcmg9",
  "timestamp": "2026-01-25T10:11:00.069Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82079744,
      "heapTotal": 34385920,
      "heapUsed": 31522552,
      "external": 2343358,
      "arrayBuffers": 25483
    },
    "uptime": 104.3659812
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335920052_cyc9kamqk",
  "timestamp": "2026-01-25T10:12:00.052Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83681280,
      "heapTotal": 34123776,
      "heapUsed": 32261080,
      "external": 2343621,
      "arrayBuffers": 25746
    },
    "uptime": 164.3493706
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769335980043_jb3tfod9q",
  "timestamp": "2026-01-25T10:13:00.043Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83795968,
      "heapTotal": 34648064,
      "heapUsed": 32708616,
      "external": 2351922,
      "arrayBuffers": 34047
    },
    "uptime": 224.3401191
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336040063_bed1h715w",
  "timestamp": "2026-01-25T10:14:00.063Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84631552,
      "heapTotal": 35434496,
      "heapUsed": 33336640,
      "external": 2352047,
      "arrayBuffers": 34172
    },
    "uptime": 284.3603611
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336100062_xnwe83mer",
  "timestamp": "2026-01-25T10:15:00.062Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85778432,
      "heapTotal": 36220928,
      "heapUsed": 33919640,
      "external": 2352172,
      "arrayBuffers": 34297
    },
    "uptime": 344.3592263
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336160055_z6kuirn3q",
  "timestamp": "2026-01-25T10:16:00.055Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86315008,
      "heapTotal": 36745216,
      "heapUsed": 34393104,
      "external": 2360312,
      "arrayBuffers": 42437
    },
    "uptime": 404.3526467
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336220034_q8xmis2q0",
  "timestamp": "2026-01-25T10:17:00.034Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87556096,
      "heapTotal": 38580224,
      "heapUsed": 35057960,
      "external": 2360614,
      "arrayBuffers": 42739
    },
    "uptime": 464.331846
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336280054_zqkfidos4",
  "timestamp": "2026-01-25T10:18:00.054Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87552000,
      "heapTotal": 38055936,
      "heapUsed": 35635664,
      "external": 2368931,
      "arrayBuffers": 51056
    },
    "uptime": 524.3517287
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336340057_zdokzbn97",
  "timestamp": "2026-01-25T10:19:00.057Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87732224,
      "heapTotal": 38580224,
      "heapUsed": 36162512,
      "external": 2369056,
      "arrayBuffers": 51181
    },
    "uptime": 584.3542904
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336400045_y6dr5u4wg",
  "timestamp": "2026-01-25T10:20:00.045Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88580096,
      "heapTotal": 39104512,
      "heapUsed": 36696392,
      "external": 2369181,
      "arrayBuffers": 51306
    },
    "uptime": 644.3421972
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336460039_0q3w7xcon",
  "timestamp": "2026-01-25T10:21:00.039Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88866816,
      "heapTotal": 39628800,
      "heapUsed": 37145736,
      "external": 2377321,
      "arrayBuffers": 59446
    },
    "uptime": 704.3364655
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336520043_qa18mwkqf",
  "timestamp": "2026-01-25T10:22:00.043Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89833472,
      "heapTotal": 41201664,
      "heapUsed": 37737624,
      "external": 2377623,
      "arrayBuffers": 59748
    },
    "uptime": 764.3404896
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336580055_nmfi04zuy",
  "timestamp": "2026-01-25T10:23:00.055Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90255360,
      "heapTotal": 40677376,
      "heapUsed": 38264288,
      "external": 2377748,
      "arrayBuffers": 59873
    },
    "uptime": 824.352045
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336640049_bbj7em6r6",
  "timestamp": "2026-01-25T10:24:00.049Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90320896,
      "heapTotal": 41201664,
      "heapUsed": 38787432,
      "external": 2386065,
      "arrayBuffers": 68190
    },
    "uptime": 884.3465127
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336700052_8u3fe2ftv",
  "timestamp": "2026-01-25T10:25:00.052Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91160576,
      "heapTotal": 41725952,
      "heapUsed": 39313840,
      "external": 2386190,
      "arrayBuffers": 68315
    },
    "uptime": 944.3496745
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336760067_74iyqnxcn",
  "timestamp": "2026-01-25T10:26:00.067Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91566080,
      "heapTotal": 37269504,
      "heapUsed": 32510976,
      "external": 2343483,
      "arrayBuffers": 25608
    },
    "uptime": 1004.364509
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336820050_0qt6p7jo1",
  "timestamp": "2026-01-25T10:27:00.050Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92237824,
      "heapTotal": 38318080,
      "heapUsed": 33190480,
      "external": 2351938,
      "arrayBuffers": 34063
    },
    "uptime": 1064.3473713
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336880038_7wssng4sw",
  "timestamp": "2026-01-25T10:28:00.038Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91377664,
      "heapTotal": 38842368,
      "heapUsed": 33588352,
      "external": 2352047,
      "arrayBuffers": 34172
    },
    "uptime": 1124.3346997
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769336940052_69ongls1u",
  "timestamp": "2026-01-25T10:29:00.052Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91914240,
      "heapTotal": 39628800,
      "heapUsed": 34115088,
      "external": 2360364,
      "arrayBuffers": 42489
    },
    "uptime": 1184.3492905
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337000054_ph8gvhkbd",
  "timestamp": "2026-01-25T10:30:00.054Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92082176,
      "heapTotal": 40153088,
      "heapUsed": 34651656,
      "external": 2360489,
      "arrayBuffers": 42614
    },
    "uptime": 1244.3511157
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337060049_ttqxwmzm5",
  "timestamp": "2026-01-25T10:31:00.049Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92495872,
      "heapTotal": 39628800,
      "heapUsed": 35293336,
      "external": 2360630,
      "arrayBuffers": 42755
    },
    "uptime": 1304.3463176
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337120060_71j5zfpmh",
  "timestamp": "2026-01-25T10:32:00.060Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91951104,
      "heapTotal": 40153088,
      "heapUsed": 35688464,
      "external": 2368931,
      "arrayBuffers": 51056
    },
    "uptime": 1364.3577252
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337180058_pfzq49klr",
  "timestamp": "2026-01-25T10:33:00.058Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91889664,
      "heapTotal": 40939520,
      "heapUsed": 36210672,
      "external": 2369056,
      "arrayBuffers": 51181
    },
    "uptime": 1424.3549504
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337240046_9m08dgw5p",
  "timestamp": "2026-01-25T10:34:00.046Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87654400,
      "heapTotal": 41463808,
      "heapUsed": 36727496,
      "external": 2369181,
      "arrayBuffers": 51306
    },
    "uptime": 1484.3428396
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337300046_nuhxl4678",
  "timestamp": "2026-01-25T10:35:00.046Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88891392,
      "heapTotal": 43036672,
      "heapUsed": 37382048,
      "external": 2377514,
      "arrayBuffers": 59639
    },
    "uptime": 1544.3431401
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337360037_n0ofx8u2v",
  "timestamp": "2026-01-25T10:36:00.037Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88850432,
      "heapTotal": 42512384,
      "heapUsed": 37775288,
      "external": 2377623,
      "arrayBuffers": 59748
    },
    "uptime": 1604.3344146
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337420047_wo8i0a43j",
  "timestamp": "2026-01-25T10:37:00.047Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89509888,
      "heapTotal": 43298816,
      "heapUsed": 38303112,
      "external": 2377748,
      "arrayBuffers": 59873
    },
    "uptime": 1664.3443922
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337480046_pfzb2xshr",
  "timestamp": "2026-01-25T10:38:00.046Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88969216,
      "heapTotal": 43823104,
      "heapUsed": 38817968,
      "external": 2386065,
      "arrayBuffers": 68190
    },
    "uptime": 1724.3439682
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337540056_nkazcnf3x",
  "timestamp": "2026-01-25T10:39:00.056Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 89972736,
      "heapTotal": 45395968,
      "heapUsed": 39472272,
      "external": 2386206,
      "arrayBuffers": 68331
    },
    "uptime": 1784.3529758
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337600067_np8e0whk1",
  "timestamp": "2026-01-25T10:40:00.067Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90144768,
      "heapTotal": 44871680,
      "heapUsed": 39869088,
      "external": 2394507,
      "arrayBuffers": 76632
    },
    "uptime": 1844.3640075
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337660175_ni7hz8icm",
  "timestamp": "2026-01-25T10:41:00.175Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91398144,
      "heapTotal": 45658112,
      "heapUsed": 40391240,
      "external": 2394632,
      "arrayBuffers": 76757
    },
    "uptime": 1904.4727444
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337720071_c169njk3k",
  "timestamp": "2026-01-25T10:42:00.071Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91631616,
      "heapTotal": 46182400,
      "heapUsed": 40918376,
      "external": 2394757,
      "arrayBuffers": 76882
    },
    "uptime": 1964.3685362
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337780090_x87yugu10",
  "timestamp": "2026-01-25T10:43:00.090Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92581888,
      "heapTotal": 37007360,
      "heapUsed": 31117928,
      "external": 2351853,
      "arrayBuffers": 33978
    },
    "uptime": 2024.3876487
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337840050_750cjvfsz",
  "timestamp": "2026-01-25T10:44:00.050Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86646784,
      "heapTotal": 38055936,
      "heapUsed": 31722800,
      "external": 2352155,
      "arrayBuffers": 34280
    },
    "uptime": 2084.3470291
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337900456_1tyse41la",
  "timestamp": "2026-01-25T10:45:00.456Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86814720,
      "heapTotal": 38580224,
      "heapUsed": 32243000,
      "external": 2352280,
      "arrayBuffers": 34405
    },
    "uptime": 2144.7536314
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769337960088_dzbafxjwi",
  "timestamp": "2026-01-25T10:46:00.088Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87109632,
      "heapTotal": 39104512,
      "heapUsed": 32763760,
      "external": 2360597,
      "arrayBuffers": 42722
    },
    "uptime": 2204.3857727
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338020064_dzplk1v5l",
  "timestamp": "2026-01-25T10:47:00.064Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87420928,
      "heapTotal": 39628800,
      "heapUsed": 33279152,
      "external": 2360722,
      "arrayBuffers": 42847
    },
    "uptime": 2264.3619229
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338080056_y3ziz72m2",
  "timestamp": "2026-01-25T10:48:00.056Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88440832,
      "heapTotal": 39104512,
      "heapUsed": 33936440,
      "external": 2360863,
      "arrayBuffers": 42988
    },
    "uptime": 2324.3534223
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338140090_50171ii2e",
  "timestamp": "2026-01-25T10:49:00.090Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87240704,
      "heapTotal": 39628800,
      "heapUsed": 34336712,
      "external": 2369164,
      "arrayBuffers": 51289
    },
    "uptime": 2384.3869753
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338200114_phhufaekq",
  "timestamp": "2026-01-25T10:50:00.114Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87945216,
      "heapTotal": 40415232,
      "heapUsed": 34861256,
      "external": 2369289,
      "arrayBuffers": 51414
    },
    "uptime": 2444.4111806
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338260290_y1z29bpwx",
  "timestamp": "2026-01-25T10:51:00.290Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87818240,
      "heapTotal": 40939520,
      "heapUsed": 35387384,
      "external": 2377606,
      "arrayBuffers": 59731
    },
    "uptime": 2504.5874648
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338321074_weqyr8auk",
  "timestamp": "2026-01-25T10:52:01.074Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87928832,
      "heapTotal": 42512384,
      "heapUsed": 36028672,
      "external": 2377747,
      "arrayBuffers": 59872
    },
    "uptime": 2565.3716193
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338380294_s5dpy5dsb",
  "timestamp": "2026-01-25T10:53:00.294Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86659072,
      "heapTotal": 41988096,
      "heapUsed": 36421648,
      "external": 2377856,
      "arrayBuffers": 59981
    },
    "uptime": 2624.5921322
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338440406_38wp9z9p2",
  "timestamp": "2026-01-25T10:54:00.406Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83619840,
      "heapTotal": 42774528,
      "heapUsed": 36944000,
      "external": 2386173,
      "arrayBuffers": 68298
    },
    "uptime": 2684.7044339
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338500026_h2pnrqfkj",
  "timestamp": "2026-01-25T10:55:00.026Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84156416,
      "heapTotal": 43298816,
      "heapUsed": 37474544,
      "external": 2386298,
      "arrayBuffers": 68423
    },
    "uptime": 2744.3237257
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338560080_jhoe9z2vu",
  "timestamp": "2026-01-25T10:56:00.080Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84287488,
      "heapTotal": 43823104,
      "heapUsed": 37914368,
      "external": 2386246,
      "arrayBuffers": 68371
    },
    "uptime": 2804.3775158
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338620059_kr2202rw8",
  "timestamp": "2026-01-25T10:57:00.059Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84529152,
      "heapTotal": 45395968,
      "heapUsed": 38505384,
      "external": 2394740,
      "arrayBuffers": 76865
    },
    "uptime": 2864.3572374
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338680063_el2g2fivg",
  "timestamp": "2026-01-25T10:58:00.063Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84725760,
      "heapTotal": 44871680,
      "heapUsed": 39025576,
      "external": 2394865,
      "arrayBuffers": 76990
    },
    "uptime": 2924.359999
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338740065_s7d733ynt",
  "timestamp": "2026-01-25T10:59:00.065Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84656128,
      "heapTotal": 45395968,
      "heapUsed": 39549800,
      "external": 2394990,
      "arrayBuffers": 77115
    },
    "uptime": 2984.3629292
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338800077_p7j962uem",
  "timestamp": "2026-01-25T11:00:00.077Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84635648,
      "heapTotal": 35434496,
      "heapUsed": 29835248,
      "external": 2350481,
      "arrayBuffers": 34010
    },
    "uptime": 3044.3746043
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338860048_919v1ov78",
  "timestamp": "2026-01-25T11:01:00.048Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84930560,
      "heapTotal": 36483072,
      "heapUsed": 30400728,
      "external": 2350751,
      "arrayBuffers": 34280
    },
    "uptime": 3104.3453888
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338920041_ilsblezgh",
  "timestamp": "2026-01-25T11:02:00.041Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85233664,
      "heapTotal": 37007360,
      "heapUsed": 30923040,
      "external": 2359068,
      "arrayBuffers": 42597
    },
    "uptime": 3164.3387582
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769338980080_3nys1zd31",
  "timestamp": "2026-01-25T11:03:00.080Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85090304,
      "heapTotal": 37531648,
      "heapUsed": 31452456,
      "external": 2359193,
      "arrayBuffers": 42722
    },
    "uptime": 3224.3782002
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339040076_xlno2h3ax",
  "timestamp": "2026-01-25T11:04:00.076Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85336064,
      "heapTotal": 38055936,
      "heapUsed": 31982960,
      "external": 2359318,
      "arrayBuffers": 42847
    },
    "uptime": 3284.373067
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339100066_9zzc3whic",
  "timestamp": "2026-01-25T11:05:00.066Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85405696,
      "heapTotal": 38580224,
      "heapUsed": 32421744,
      "external": 2367458,
      "arrayBuffers": 50987
    },
    "uptime": 3344.3632668
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339160082_656151794",
  "timestamp": "2026-01-25T11:06:00.082Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85352448,
      "heapTotal": 38055936,
      "heapUsed": 33014352,
      "external": 2367760,
      "arrayBuffers": 51289
    },
    "uptime": 3404.379419
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339220071_eny146gnp",
  "timestamp": "2026-01-25T11:07:00.071Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84963328,
      "heapTotal": 38580224,
      "heapUsed": 33537368,
      "external": 2367885,
      "arrayBuffers": 51414
    },
    "uptime": 3464.3687937
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339280080_3uo6c0yjj",
  "timestamp": "2026-01-25T11:08:00.080Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85377024,
      "heapTotal": 39104512,
      "heapUsed": 34064912,
      "external": 2376202,
      "arrayBuffers": 59731
    },
    "uptime": 3524.3779108
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339340104_lb7chldld",
  "timestamp": "2026-01-25T11:09:00.104Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86716416,
      "heapTotal": 39628800,
      "heapUsed": 34588152,
      "external": 2376327,
      "arrayBuffers": 59856
    },
    "uptime": 3584.4005658
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339400058_depks5k96",
  "timestamp": "2026-01-25T11:10:00.058Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86933504,
      "heapTotal": 41201664,
      "heapUsed": 35233120,
      "external": 2376468,
      "arrayBuffers": 59997
    },
    "uptime": 3644.3547519
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339460098_bmiw783bj",
  "timestamp": "2026-01-25T11:11:00.098Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87306240,
      "heapTotal": 40677376,
      "heapUsed": 35626624,
      "external": 2384769,
      "arrayBuffers": 68298
    },
    "uptime": 3704.3950361
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339520051_ds5abjjom",
  "timestamp": "2026-01-25T11:12:00.051Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87683072,
      "heapTotal": 41463808,
      "heapUsed": 36148616,
      "external": 2384894,
      "arrayBuffers": 68423
    },
    "uptime": 3764.3479002
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339580075_igapznj6g",
  "timestamp": "2026-01-25T11:13:00.075Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87932928,
      "heapTotal": 41988096,
      "heapUsed": 36674728,
      "external": 2393211,
      "arrayBuffers": 76740
    },
    "uptime": 3824.3727135
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339640056_5l0d1k69q",
  "timestamp": "2026-01-25T11:14:00.056Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88059904,
      "heapTotal": 42512384,
      "heapUsed": 37118160,
      "external": 2393159,
      "arrayBuffers": 76688
    },
    "uptime": 3884.3539428
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339700070_jzo2x1ppe",
  "timestamp": "2026-01-25T11:15:00.070Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88305664,
      "heapTotal": 44085248,
      "heapUsed": 37708928,
      "external": 2393461,
      "arrayBuffers": 76990
    },
    "uptime": 3944.3679383
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339760075_o0uwm99ib",
  "timestamp": "2026-01-25T11:16:00.075Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88555520,
      "heapTotal": 43560960,
      "heapUsed": 38232896,
      "external": 2401778,
      "arrayBuffers": 85307
    },
    "uptime": 4004.3726909
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339820052_xtxrdtd92",
  "timestamp": "2026-01-25T11:17:00.052Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88428544,
      "heapTotal": 34193408,
      "heapUsed": 28776648,
      "external": 2350362,
      "arrayBuffers": 33978
    },
    "uptime": 4064.3490382
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339880072_r1wkq0c69",
  "timestamp": "2026-01-25T11:18:00.072Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88875008,
      "heapTotal": 35504128,
      "heapUsed": 29381120,
      "external": 2350664,
      "arrayBuffers": 34280
    },
    "uptime": 4124.3691546
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769339940069_jknmu4ygp",
  "timestamp": "2026-01-25T11:19:00.069Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87756800,
      "heapTotal": 35766272,
      "heapUsed": 29901608,
      "external": 2358981,
      "arrayBuffers": 42597
    },
    "uptime": 4184.3667258
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340000069_u29ke89zs",
  "timestamp": "2026-01-25T11:20:00.069Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87932928,
      "heapTotal": 36290560,
      "heapUsed": 30423768,
      "external": 2359106,
      "arrayBuffers": 42722
    },
    "uptime": 4244.3657678
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340060086_v68zimfnd",
  "timestamp": "2026-01-25T11:21:00.086Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88162304,
      "heapTotal": 36814848,
      "heapUsed": 30941224,
      "external": 2359231,
      "arrayBuffers": 42847
    },
    "uptime": 4304.3841011
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340120051_vzxaoe5sj",
  "timestamp": "2026-01-25T11:22:00.050Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87875584,
      "heapTotal": 36290560,
      "heapUsed": 31594352,
      "external": 2367564,
      "arrayBuffers": 51180
    },
    "uptime": 4364.3476808
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340180075_vrs6596pu",
  "timestamp": "2026-01-25T11:23:00.075Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87855104,
      "heapTotal": 36814848,
      "heapUsed": 31988928,
      "external": 2367673,
      "arrayBuffers": 51289
    },
    "uptime": 4424.3720903
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340240074_xqgv6ng4r",
  "timestamp": "2026-01-25T11:24:00.074Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87322624,
      "heapTotal": 37601280,
      "heapUsed": 32511144,
      "external": 2375990,
      "arrayBuffers": 59606
    },
    "uptime": 4484.3716258
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340300066_qah9yjgco",
  "timestamp": "2026-01-25T11:25:00.066Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87572480,
      "heapTotal": 38125568,
      "heapUsed": 33041920,
      "external": 2376115,
      "arrayBuffers": 59731
    },
    "uptime": 4544.3638455
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340360066_bkcgcibw6",
  "timestamp": "2026-01-25T11:26:00.065Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87572480,
      "heapTotal": 39698432,
      "heapUsed": 33683696,
      "external": 2376256,
      "arrayBuffers": 59872
    },
    "uptime": 4604.3633063
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340420054_lnm9k0o40",
  "timestamp": "2026-01-25T11:27:00.054Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87633920,
      "heapTotal": 39174144,
      "heapUsed": 34078968,
      "external": 2384557,
      "arrayBuffers": 68173
    },
    "uptime": 4664.3513343
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340480042_ew9y5x7ca",
  "timestamp": "2026-01-25T11:28:00.042Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87674880,
      "heapTotal": 39960576,
      "heapUsed": 34601208,
      "external": 2384682,
      "arrayBuffers": 68298
    },
    "uptime": 4724.3388085
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340540053_lm3alo1x8",
  "timestamp": "2026-01-25T11:29:00.053Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87289856,
      "heapTotal": 40484864,
      "heapUsed": 35129760,
      "external": 2384807,
      "arrayBuffers": 68423
    },
    "uptime": 4784.3504507
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340600057_9hzfjl1qc",
  "timestamp": "2026-01-25T11:30:00.057Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87339008,
      "heapTotal": 42057728,
      "heapUsed": 35771072,
      "external": 2393140,
      "arrayBuffers": 76756
    },
    "uptime": 4844.3539472
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340660035_5pur3ooje",
  "timestamp": "2026-01-25T11:31:00.035Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82149376,
      "heapTotal": 41533440,
      "heapUsed": 36173096,
      "external": 2393249,
      "arrayBuffers": 76865
    },
    "uptime": 4904.3322685
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340720059_vlwnwox04",
  "timestamp": "2026-01-25T11:32:00.059Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82862080,
      "heapTotal": 42319872,
      "heapUsed": 36696552,
      "external": 2393374,
      "arrayBuffers": 76990
    },
    "uptime": 4964.3572913
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340780071_19rcjg9xo",
  "timestamp": "2026-01-25T11:33:00.071Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82919424,
      "heapTotal": 42844160,
      "heapUsed": 37235200,
      "external": 2401691,
      "arrayBuffers": 85307
    },
    "uptime": 5024.3683674
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340840061_6sq5n4qyy",
  "timestamp": "2026-01-25T11:34:00.061Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83537920,
      "heapTotal": 34455552,
      "heapUsed": 28800056,
      "external": 2340797,
      "arrayBuffers": 25818
    },
    "uptime": 5084.3588049
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340900058_y8y556b4r",
  "timestamp": "2026-01-25T11:35:00.058Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84070400,
      "heapTotal": 35766272,
      "heapUsed": 29368472,
      "external": 2349259,
      "arrayBuffers": 34280
    },
    "uptime": 5144.3562232
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769340960070_ue4z17lk1",
  "timestamp": "2026-01-25T11:36:00.070Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83496960,
      "heapTotal": 36290560,
      "heapUsed": 29889056,
      "external": 2349384,
      "arrayBuffers": 34405
    },
    "uptime": 5204.3672973
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769341020056_dbwtzc5ow",
  "timestamp": "2026-01-25T11:37:00.056Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83677184,
      "heapTotal": 36814848,
      "heapUsed": 30414032,
      "external": 2349509,
      "arrayBuffers": 34530
    },
    "uptime": 5264.3544442
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342160283_wfu7ofax5",
  "timestamp": "2026-01-25T11:56:00.283Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85901312,
      "heapTotal": 37339136,
      "heapUsed": 31076456,
      "external": 2357842,
      "arrayBuffers": 42863
    },
    "uptime": 6404.5911817
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342220034_92yu5c2da",
  "timestamp": "2026-01-25T11:57:00.034Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83062784,
      "heapTotal": 36814848,
      "heapUsed": 31467712,
      "external": 2357951,
      "arrayBuffers": 42972
    },
    "uptime": 6464.341884
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342280032_przprq751",
  "timestamp": "2026-01-25T11:58:00.032Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83345408,
      "heapTotal": 37601280,
      "heapUsed": 32003736,
      "external": 2358076,
      "arrayBuffers": 43097
    },
    "uptime": 6524.3395419
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342340032_o0heht68l",
  "timestamp": "2026-01-25T11:59:00.032Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83501056,
      "heapTotal": 39174144,
      "heapUsed": 32646872,
      "external": 2366409,
      "arrayBuffers": 51430
    },
    "uptime": 6584.3395752
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342400041_tuc7dkwjn",
  "timestamp": "2026-01-25T12:00:00.041Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83763200,
      "heapTotal": 38649856,
      "heapUsed": 33044624,
      "external": 2366518,
      "arrayBuffers": 51539
    },
    "uptime": 6644.3486321
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342460051_n69nbhdk7",
  "timestamp": "2026-01-25T12:01:00.051Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83124224,
      "heapTotal": 39436288,
      "heapUsed": 33566616,
      "external": 2366643,
      "arrayBuffers": 51664
    },
    "uptime": 6704.3582341
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342520054_xkmb6p4h5",
  "timestamp": "2026-01-25T12:02:00.054Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83095552,
      "heapTotal": 39960576,
      "heapUsed": 34101912,
      "external": 2374960,
      "arrayBuffers": 59981
    },
    "uptime": 6764.3616895
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342580043_3d3pouvof",
  "timestamp": "2026-01-25T12:03:00.043Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83410944,
      "heapTotal": 41533440,
      "heapUsed": 34744824,
      "external": 2375101,
      "arrayBuffers": 60122
    },
    "uptime": 6824.3508259
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342640037_935o6yf0j",
  "timestamp": "2026-01-25T12:04:00.037Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83689472,
      "heapTotal": 41009152,
      "heapUsed": 35138376,
      "external": 2383402,
      "arrayBuffers": 68423
    },
    "uptime": 6884.3449379
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342700031_3dmp2ukru",
  "timestamp": "2026-01-25T12:05:00.031Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84062208,
      "heapTotal": 41795584,
      "heapUsed": 35660296,
      "external": 2383527,
      "arrayBuffers": 68548
    },
    "uptime": 6944.3392301
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342760039_zt9e6s3qn",
  "timestamp": "2026-01-25T12:06:00.039Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84430848,
      "heapTotal": 42319872,
      "heapUsed": 36186672,
      "external": 2383652,
      "arrayBuffers": 68673
    },
    "uptime": 7004.3463078
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769342820056_f0s3e4ho8",
  "timestamp": "2026-01-25T12:07:00.056Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84811776,
      "heapTotal": 43892736,
      "heapUsed": 36827992,
      "external": 2391985,
      "arrayBuffers": 77006
    },
    "uptime": 7064.3640844
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343000863_b8qbythbg",
  "timestamp": "2026-01-25T12:10:00.863Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82931712,
      "heapTotal": 33406976,
      "heapUsed": 28195904,
      "external": 2340439,
      "arrayBuffers": 25460
    },
    "uptime": 7245.1814622
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343060036_79ng0rvtc",
  "timestamp": "2026-01-25T12:11:00.036Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83480576,
      "heapTotal": 33669120,
      "heapUsed": 28767344,
      "external": 2340709,
      "arrayBuffers": 25730
    },
    "uptime": 7304.3533893
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343120029_3ck0thbcm",
  "timestamp": "2026-01-25T12:12:00.029Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83632128,
      "heapTotal": 33931264,
      "heapUsed": 29293952,
      "external": 2349026,
      "arrayBuffers": 34047
    },
    "uptime": 7364.3471554
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343180028_2v8npn495",
  "timestamp": "2026-01-25T12:13:00.028Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83148800,
      "heapTotal": 34455552,
      "heapUsed": 29818888,
      "external": 2349151,
      "arrayBuffers": 34172
    },
    "uptime": 7424.3451849
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343240049_wp9rkxamx",
  "timestamp": "2026-01-25T12:14:00.049Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82890752,
      "heapTotal": 34979840,
      "heapUsed": 30339008,
      "external": 2349276,
      "arrayBuffers": 34297
    },
    "uptime": 7484.3668304
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343300028_ceuwk7yw1",
  "timestamp": "2026-01-25T12:15:00.028Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82968576,
      "heapTotal": 36552704,
      "heapUsed": 30988264,
      "external": 2357609,
      "arrayBuffers": 42630
    },
    "uptime": 7544.3464323
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343360051_269s2tk80",
  "timestamp": "2026-01-25T12:16:00.051Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83124224,
      "heapTotal": 36028416,
      "heapUsed": 31382672,
      "external": 2357718,
      "arrayBuffers": 42739
    },
    "uptime": 7604.3691409
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343420047_rb6s8yvaq",
  "timestamp": "2026-01-25T12:17:00.047Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83582976,
      "heapTotal": 36814848,
      "heapUsed": 31957272,
      "external": 2366035,
      "arrayBuffers": 51056
    },
    "uptime": 7664.364675
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343480033_y94dvklso",
  "timestamp": "2026-01-25T12:18:00.033Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83537920,
      "heapTotal": 37339136,
      "heapUsed": 32485352,
      "external": 2366160,
      "arrayBuffers": 51181
    },
    "uptime": 7724.3506086
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343540033_rya5xmfgb",
  "timestamp": "2026-01-25T12:19:00.033Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84316160,
      "heapTotal": 38912000,
      "heapUsed": 33128488,
      "external": 2366301,
      "arrayBuffers": 51322
    },
    "uptime": 7784.3506673
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343600054_vcn6lrh9k",
  "timestamp": "2026-01-25T12:20:00.054Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84291584,
      "heapTotal": 38387712,
      "heapUsed": 33522512,
      "external": 2374602,
      "arrayBuffers": 59623
    },
    "uptime": 7844.3713657
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769343660034_r8gzbtn6n",
  "timestamp": "2026-01-25T12:21:00.034Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84680704,
      "heapTotal": 39174144,
      "heapUsed": 34044568,
      "external": 2374727,
      "arrayBuffers": 59748
    },
    "uptime": 7904.3514799
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769345160272_tvkz1d5nx",
  "timestamp": "2026-01-25T12:46:00.272Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85811200,
      "heapTotal": 39698432,
      "heapUsed": 34567592,
      "external": 2374852,
      "arrayBuffers": 59873
    },
    "uptime": 9404.5997466
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769345220036_uwf33ft11",
  "timestamp": "2026-01-25T12:47:00.036Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84549632,
      "heapTotal": 41271296,
      "heapUsed": 35090048,
      "external": 2383169,
      "arrayBuffers": 68190
    },
    "uptime": 9464.363673
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769345280059_mcwl0k115",
  "timestamp": "2026-01-25T12:48:00.059Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85467136,
      "heapTotal": 41795584,
      "heapUsed": 35620920,
      "external": 2383294,
      "arrayBuffers": 68315
    },
    "uptime": 9524.3871749
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769345340055_jdnslfkkw",
  "timestamp": "2026-01-25T12:49:00.055Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85356544,
      "heapTotal": 42319872,
      "heapUsed": 36138560,
      "external": 2383419,
      "arrayBuffers": 68440
    },
    "uptime": 9584.3829958
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769345400028_50fyfamtj",
  "timestamp": "2026-01-25T12:50:00.028Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86241280,
      "heapTotal": 34193408,
      "heapUsed": 28740432,
      "external": 2348724,
      "arrayBuffers": 33745
    },
    "uptime": 9644.3565942
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769345460031_91128ui29",
  "timestamp": "2026-01-25T12:51:00.031Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86659072,
      "heapTotal": 34455552,
      "heapUsed": 29341792,
      "external": 2349026,
      "arrayBuffers": 34047
    },
    "uptime": 9704.3591264
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769345520041_4x8nc00u2",
  "timestamp": "2026-01-25T12:52:00.041Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83136512,
      "heapTotal": 34717696,
      "heapUsed": 29882248,
      "external": 2357343,
      "arrayBuffers": 42364
    },
    "uptime": 9764.3693379
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769345580051_vo3rjmp85",
  "timestamp": "2026-01-25T12:53:00.051Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82976768,
      "heapTotal": 35241984,
      "heapUsed": 30402832,
      "external": 2357468,
      "arrayBuffers": 42489
    },
    "uptime": 9824.3797299
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769345640038_b5a0nx7ts",
  "timestamp": "2026-01-25T12:54:00.038Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83296256,
      "heapTotal": 35766272,
      "heapUsed": 30938592,
      "external": 2357593,
      "arrayBuffers": 42614
    },
    "uptime": 9884.3666526
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346120065_mv29t1574",
  "timestamp": "2026-01-25T13:02:00.065Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83886080,
      "heapTotal": 36290560,
      "heapUsed": 31455944,
      "external": 2365910,
      "arrayBuffers": 50931
    },
    "uptime": 10364.403462
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346180055_r726c92n5",
  "timestamp": "2026-01-25T13:03:00.055Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84815872,
      "heapTotal": 37863424,
      "heapUsed": 31982288,
      "external": 2366035,
      "arrayBuffers": 51056
    },
    "uptime": 10424.3933231
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346240038_4yjj0qc6n",
  "timestamp": "2026-01-25T13:04:00.038Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84799488,
      "heapTotal": 38387712,
      "heapUsed": 32508544,
      "external": 2366160,
      "arrayBuffers": 51181
    },
    "uptime": 10484.3758801
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346300039_u261lmp28",
  "timestamp": "2026-01-25T13:05:00.039Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85172224,
      "heapTotal": 37863424,
      "heapUsed": 33149992,
      "external": 2374493,
      "arrayBuffers": 59514
    },
    "uptime": 10544.3770216
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346360049_ioy3kfuk4",
  "timestamp": "2026-01-25T13:06:00.049Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85598208,
      "heapTotal": 38387712,
      "heapUsed": 33547648,
      "external": 2374602,
      "arrayBuffers": 59623
    },
    "uptime": 10604.3869492
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346420041_iqpj7639b",
  "timestamp": "2026-01-25T13:07:00.041Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85852160,
      "heapTotal": 39174144,
      "heapUsed": 34069656,
      "external": 2374727,
      "arrayBuffers": 59748
    },
    "uptime": 10664.3795797
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346480042_cwfzedjx5",
  "timestamp": "2026-01-25T13:08:00.042Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85004288,
      "heapTotal": 39960576,
      "heapUsed": 34604704,
      "external": 2383044,
      "arrayBuffers": 68065
    },
    "uptime": 10724.379792
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346540031_6z7ty4nev",
  "timestamp": "2026-01-25T13:09:00.031Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85630976,
      "heapTotal": 41533440,
      "heapUsed": 35248776,
      "external": 2383185,
      "arrayBuffers": 68206
    },
    "uptime": 10784.369487
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346600035_ed1mb5pt9",
  "timestamp": "2026-01-25T13:10:00.035Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85905408,
      "heapTotal": 41009152,
      "heapUsed": 35641400,
      "external": 2391486,
      "arrayBuffers": 76507
    },
    "uptime": 10844.3725387
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346660026_5qx1e4csl",
  "timestamp": "2026-01-25T13:11:00.026Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86487040,
      "heapTotal": 41795584,
      "heapUsed": 36167880,
      "external": 2391611,
      "arrayBuffers": 76632
    },
    "uptime": 10904.3643804
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769346720041_iea1uum6f",
  "timestamp": "2026-01-25T13:12:00.041Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 85999616,
      "heapTotal": 42582016,
      "heapUsed": 36694040,
      "external": 2391736,
      "arrayBuffers": 76757
    },
    "uptime": 10964.3795253
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769347141539_oyryc9zcx",
  "timestamp": "2026-01-25T13:19:01.539Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 87261184,
      "heapTotal": 34717696,
      "heapUsed": 28878312,
      "external": 2348901,
      "arrayBuffers": 33922
    },
    "uptime": 11385.8882957
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769347200058_ct132mggs",
  "timestamp": "2026-01-25T13:20:00.058Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83451904,
      "heapTotal": 36290560,
      "heapUsed": 29407840,
      "external": 2349026,
      "arrayBuffers": 34047
    },
    "uptime": 11444.4064204
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769347260423_yb4pejnr4",
  "timestamp": "2026-01-25T13:21:00.423Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84000768,
      "heapTotal": 36814848,
      "heapUsed": 29945016,
      "external": 2349151,
      "arrayBuffers": 34172
    },
    "uptime": 11504.7723288
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1769347320330_9oytfmqmv",
  "timestamp": "2026-01-25T13:22:00.330Z",
  "message": "Table 'finance.shiftsessions' doesn't exist",
  "stack": "Error\n    at Query.run (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.select (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async ShiftSession.findAll (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async autoCloseExpiredSessions (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:145:26)\n    at async cron.schedule.scheduled (E:\\my_2025_pro\\alkhlodfinance\\backend\\services\\shiftAutoCloseService.js:231:5)\n    at async Timeout._onTimeout (E:\\my_2025_pro\\alkhlodfinance\\backend\\node_modules\\node-cron\\dist\\cjs\\scheduler\\runner.js:70:44)",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `ShiftSession`.`id`, `ShiftSession`.`shiftId`, `ShiftSession`.`branchId`, `ShiftSession`.`userId`, `ShiftSession`.`sessionDate`, `ShiftSession`.`startTime`, `ShiftSession`.`endTime`, `ShiftSession`.`expectedStartTime`, `ShiftSession`.`expectedEndTime`, `ShiftSession`.`openingBalance`, `ShiftSession`.`closingBalance`, `ShiftSession`.`expectedClosingBalance`, `ShiftSession`.`cashDifference`, `ShiftSession`.`totalSales`, `ShiftSession`.`totalCash`, `ShiftSession`.`totalCard`, `ShiftSession`.`totalWallet`, `ShiftSession`.`totalTransfer`, `ShiftSession`.`totalDiscount`, `ShiftSession`.`totalTax`, `ShiftSession`.`transactionsCount`, `ShiftSession`.`status`, `ShiftSession`.`closedBy`, `ShiftSession`.`notes`, `ShiftSession`.`closingNotes`, `ShiftSession`.`reportData`, `ShiftSession`.`createdAt`, `ShiftSession`.`updatedAt`, `shift`.`id` AS `shift.id`, `shift`.`shiftName` AS `shift.shiftName`, `shift`.`startTime` AS `shift.startTime`, `shift`.`endTime` AS `shift.endTime` FROM `ShiftSessions` AS `ShiftSession` LEFT OUTER JOIN `Shifts` AS `shift` ON `ShiftSession`.`shiftId` = `shift`.`id` WHERE `ShiftSession`.`status` = 'open' AND `ShiftSession`.`sessionDate` = '2026-01-25';",
  "parameters": {},
  "context": {
    "service": "shiftAutoCloseService"
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84492288,
      "heapTotal": 36290560,
      "heapUsed": 30581752,
      "external": 2357484,
      "arrayBuffers": 42505
    },
    "uptime": 11564.6787637
  }
}
----------------------------------------------------------------------------------------------------
