{
  "errorId": "ERR_1759922802918_j3amw6djl",
  "timestamp": "2025-10-08T11:26:42.918Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8",
      "if-none-match": "W/\"8e9-sLt0Sz8qoAyLT1mJ7BYwxKk/hmY\""
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T11:26:42.918Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 79015936,
      "heapTotal": 37269504,
      "heapUsed": 33782112,
      "external": 2369902,
      "arrayBuffers": 52067
    },
    "uptime": 336.0035342
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759922803867_23tf4u8hq",
  "timestamp": "2025-10-08T11:26:43.867Z",
  "message": "Unknown column 'Booking.booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async Booking.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async Promise.all (index 1)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `Booking`.`id`, `Booking`.`booking_number` AS `bookingNumber`, `Booking`.`customer_name` AS `customerName`, `Booking`.`customer_phone` AS `customerPhone`, `Booking`.`customer_email` AS `customerEmail`, `Booking`.`branch_id` AS `branchId`, `Booking`.`table_id` AS `tableId`, `Booking`.`booking_date` AS `bookingDate`, `Booking`.`booking_time` AS `bookingTime`, `Booking`.`status`, `Booking`.`total_price` AS `totalPrice`, `Booking`.`final_amount` AS `finalAmount`, `Booking`.`payment_status` AS `paymentStatus`, `Booking`.`notes`, `Booking`.`special_requests` AS `specialRequests`, `Booking`.`created_at` AS `createdAt`, `Booking`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName`, `table`.`id` AS `table.id`, `table`.`name` AS `table.name`, `table`.`tableNumber` AS `table.tableNumber`, `table`.`capacity` AS `table.capacity` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id` ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T11:26:43.867Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 79421440,
      "heapTotal": 36483072,
      "heapUsed": 34453704,
      "external": 2393370,
      "arrayBuffers": 75495
    },
    "uptime": 336.9468519
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759922805155_66z6nt69v",
  "timestamp": "2025-10-08T11:26:45.155Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T11:26:45.155Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 79491072,
      "heapTotal": 36483072,
      "heapUsed": 34050176,
      "external": 2369490,
      "arrayBuffers": 51615
    },
    "uptime": 338.235051
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759928212151_rh5yu8dhe",
  "timestamp": "2025-10-08T12:56:52.151Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T12:56:52.151Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83767296,
      "heapTotal": 40153088,
      "heapUsed": 37710544,
      "external": 2382845,
      "arrayBuffers": 65010
    },
    "uptime": 1183.0079984
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759928212818_v681wfbzk",
  "timestamp": "2025-10-08T12:56:52.818Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T12:56:52.818Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83959808,
      "heapTotal": 40153088,
      "heapUsed": 32284384,
      "external": 2368621,
      "arrayBuffers": 50746
    },
    "uptime": 1183.675378
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759928213980_eksx7qh35",
  "timestamp": "2025-10-08T12:56:53.980Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T12:56:53.980Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83718144,
      "heapTotal": 40153088,
      "heapUsed": 32682920,
      "external": 2368766,
      "arrayBuffers": 50891
    },
    "uptime": 1184.8369372
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929273386_1uslkto6o",
  "timestamp": "2025-10-08T13:14:33.386Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:14:33.386Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 81268736,
      "heapTotal": 41201664,
      "heapUsed": 35605272,
      "external": 2369997,
      "arrayBuffers": 52122
    },
    "uptime": 2244.2437112
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929274581_45gjk8raw",
  "timestamp": "2025-10-08T13:14:34.581Z",
  "message": "Unknown column 'Booking.booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async Booking.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async Promise.all (index 1)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `Booking`.`id`, `Booking`.`booking_number` AS `bookingNumber`, `Booking`.`customer_name` AS `customerName`, `Booking`.`customer_phone` AS `customerPhone`, `Booking`.`customer_email` AS `customerEmail`, `Booking`.`branch_id` AS `branchId`, `Booking`.`table_id` AS `tableId`, `Booking`.`booking_date` AS `bookingDate`, `Booking`.`booking_time` AS `bookingTime`, `Booking`.`status`, `Booking`.`total_price` AS `totalPrice`, `Booking`.`final_amount` AS `finalAmount`, `Booking`.`payment_status` AS `paymentStatus`, `Booking`.`notes`, `Booking`.`special_requests` AS `specialRequests`, `Booking`.`created_at` AS `createdAt`, `Booking`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName`, `table`.`id` AS `table.id`, `table`.`name` AS `table.name`, `table`.`tableNumber` AS `table.tableNumber`, `table`.`capacity` AS `table.capacity` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id` ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:14:34.581Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 81584128,
      "heapTotal": 42512384,
      "heapUsed": 35761336,
      "external": 2380311,
      "arrayBuffers": 62436
    },
    "uptime": 2245.4382425
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929275672_8s9yqwkrt",
  "timestamp": "2025-10-08T13:14:35.672Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:14:35.672Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 81870848,
      "heapTotal": 41725952,
      "heapUsed": 35618832,
      "external": 2369125,
      "arrayBuffers": 51250
    },
    "uptime": 2246.5292618
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929356913_c20q414l6",
  "timestamp": "2025-10-08T13:15:56.898Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:15:56.898Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82366464,
      "heapTotal": 42250240,
      "heapUsed": 36716816,
      "external": 2378257,
      "arrayBuffers": 60382
    },
    "uptime": 2327.7703944
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929357718_qgwh1wb2x",
  "timestamp": "2025-10-08T13:15:57.718Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:15:57.718Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82640896,
      "heapTotal": 43560960,
      "heapUsed": 36773880,
      "external": 2378402,
      "arrayBuffers": 60527
    },
    "uptime": 2328.574949
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929363034_45lova47u",
  "timestamp": "2025-10-08T13:16:03.034Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:16:03.034Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83181568,
      "heapTotal": 42774528,
      "heapUsed": 37369432,
      "external": 2445625,
      "arrayBuffers": 127750
    },
    "uptime": 2333.8913625
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929364277_invjq9lbm",
  "timestamp": "2025-10-08T13:16:04.277Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:16:04.277Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83329024,
      "heapTotal": 43823104,
      "heapUsed": 37328440,
      "external": 2394080,
      "arrayBuffers": 76205
    },
    "uptime": 2335.1340979
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929365710_m48swa4aa",
  "timestamp": "2025-10-08T13:16:05.710Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:16:05.710Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82993152,
      "heapTotal": 43823104,
      "heapUsed": 37728208,
      "external": 2394225,
      "arrayBuffers": 76350
    },
    "uptime": 2336.566763
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929375225_bezlt7e1c",
  "timestamp": "2025-10-08T13:16:15.225Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:16:15.225Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84598784,
      "heapTotal": 43823104,
      "heapUsed": 39096600,
      "external": 2394064,
      "arrayBuffers": 76189
    },
    "uptime": 2346.0816231
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929375802_gw28k9anx",
  "timestamp": "2025-10-08T13:16:15.802Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:16:15.802Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84545536,
      "heapTotal": 44347392,
      "heapUsed": 39378536,
      "external": 2402776,
      "arrayBuffers": 84901
    },
    "uptime": 2346.6591327
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929376369_fhviin1mk",
  "timestamp": "2025-10-08T13:16:16.369Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:16:16.369Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84635648,
      "heapTotal": 44347392,
      "heapUsed": 39748096,
      "external": 2411113,
      "arrayBuffers": 93238
    },
    "uptime": 2347.2257387
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929429374_ch9uz7858",
  "timestamp": "2025-10-08T13:17:09.374Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:17:09.374Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 76255232,
      "heapTotal": 34455552,
      "heapUsed": 31769224,
      "external": 2371124,
      "arrayBuffers": 54740
    },
    "uptime": 2400.2314654
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929430008_cj2l8cgil",
  "timestamp": "2025-10-08T13:17:10.008Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:17:10.008Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 76427264,
      "heapTotal": 35766272,
      "heapUsed": 31972904,
      "external": 2374428,
      "arrayBuffers": 58044
    },
    "uptime": 2400.865705
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759929431616_dw5oz12zr",
  "timestamp": "2025-10-08T13:17:11.616Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:17:11.616Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 76492800,
      "heapTotal": 34717696,
      "heapUsed": 31581552,
      "external": 2371108,
      "arrayBuffers": 54724
    },
    "uptime": 2402.4737916
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930120713_139qulocs",
  "timestamp": "2025-10-08T13:28:40.713Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:28:40.713Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 81502208,
      "heapTotal": 41271296,
      "heapUsed": 34111728,
      "external": 2426625,
      "arrayBuffers": 111646
    },
    "uptime": 3091.569588
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930121291_ptflqrypw",
  "timestamp": "2025-10-08T13:28:41.291Z",
  "message": "Unknown column 'Booking.booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async Booking.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async Promise.all (index 1)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `Booking`.`id`, `Booking`.`booking_number` AS `bookingNumber`, `Booking`.`customer_name` AS `customerName`, `Booking`.`customer_phone` AS `customerPhone`, `Booking`.`customer_email` AS `customerEmail`, `Booking`.`branch_id` AS `branchId`, `Booking`.`table_id` AS `tableId`, `Booking`.`booking_date` AS `bookingDate`, `Booking`.`booking_time` AS `bookingTime`, `Booking`.`status`, `Booking`.`total_price` AS `totalPrice`, `Booking`.`final_amount` AS `finalAmount`, `Booking`.`payment_status` AS `paymentStatus`, `Booking`.`notes`, `Booking`.`special_requests` AS `specialRequests`, `Booking`.`created_at` AS `createdAt`, `Booking`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName`, `table`.`id` AS `table.id`, `table`.`name` AS `table.name`, `table`.`tableNumber` AS `table.tableNumber`, `table`.`capacity` AS `table.capacity` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id` ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:28:41.291Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 81711104,
      "heapTotal": 41795584,
      "heapUsed": 34420888,
      "external": 2448909,
      "arrayBuffers": 133930
    },
    "uptime": 3092.148407
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930122452_tax1h83w8",
  "timestamp": "2025-10-08T13:28:42.452Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:339:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:28:42.452Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 81784832,
      "heapTotal": 40747008,
      "heapUsed": 34121688,
      "external": 2445274,
      "arrayBuffers": 130295
    },
    "uptime": 3093.3093916
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930623635_l1dos1fwp",
  "timestamp": "2025-10-08T13:37:03.635Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:350:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:37:03.634Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129499136,
      "heapTotal": 86814720,
      "heapUsed": 30329136,
      "external": 2351585,
      "arrayBuffers": 33750
    },
    "uptime": 5.5671055
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930624492_8moa6vh8w",
  "timestamp": "2025-10-08T13:37:04.492Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:350:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:37:04.492Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129617920,
      "heapTotal": 86814720,
      "heapUsed": 30861104,
      "external": 2352248,
      "arrayBuffers": 34373
    },
    "uptime": 6.4239658
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930626237_u9qizynub",
  "timestamp": "2025-10-08T13:37:06.237Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:350:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:37:06.237Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129658880,
      "heapTotal": 86814720,
      "heapUsed": 31323984,
      "external": 2360585,
      "arrayBuffers": 42710
    },
    "uptime": 8.1698559
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930651660_wongchhi1",
  "timestamp": "2025-10-08T13:37:31.660Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:277:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `bookings` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759930651621",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:30",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":1,\"name\":\"تغيير الزيت\",\"category\":\"عام\",\"duration\":30,\"price\":150,\"priority\":\"standard\"}]",
    "2025-10-08 13:37:31",
    "2025-10-08 13:37:31"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:30",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 1,
          "name": "تغيير الزيت",
          "category": "عام",
          "duration": 30,
          "price": 150,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "427",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T13:37:31.660Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129892352,
      "heapTotal": 87076864,
      "heapUsed": 33746032,
      "external": 2365931,
      "arrayBuffers": 48056
    },
    "uptime": 33.5923791
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930652037_f9hph1bal",
  "timestamp": "2025-10-08T13:37:32.037Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:277:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `bookings` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759930651992",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:30",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":1,\"name\":\"تغيير الزيت\",\"category\":\"عام\",\"duration\":30,\"price\":150,\"priority\":\"standard\"}]",
    "2025-10-08 13:37:32",
    "2025-10-08 13:37:32"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:30",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 1,
          "name": "تغيير الزيت",
          "category": "عام",
          "duration": 30,
          "price": 150,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "427",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T13:37:32.037Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129929216,
      "heapTotal": 87339008,
      "heapUsed": 34287544,
      "external": 2377707,
      "arrayBuffers": 59832
    },
    "uptime": 33.9694439
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930653725_pzr02512j",
  "timestamp": "2025-10-08T13:37:33.725Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:277:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `bookings` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759930653721",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:30",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":1,\"name\":\"تغيير الزيت\",\"category\":\"عام\",\"duration\":30,\"price\":150,\"priority\":\"standard\"}]",
    "2025-10-08 13:37:33",
    "2025-10-08 13:37:33"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:30",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 1,
          "name": "تغيير الزيت",
          "category": "عام",
          "duration": 30,
          "price": 150,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "427",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T13:37:33.725Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 130043904,
      "heapTotal": 87339008,
      "heapUsed": 35009984,
      "external": 2381307,
      "arrayBuffers": 63432
    },
    "uptime": 35.6573491
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930653773_d1j0mo52y",
  "timestamp": "2025-10-08T13:37:33.773Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:350:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:37:33.773Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 130101248,
      "heapTotal": 87339008,
      "heapUsed": 36034576,
      "external": 2381384,
      "arrayBuffers": 63509
    },
    "uptime": 35.7054426
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930654707_9y1yi74ds",
  "timestamp": "2025-10-08T13:37:34.707Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:350:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:37:34.707Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 130129920,
      "heapTotal": 87339008,
      "heapUsed": 36485352,
      "external": 2390199,
      "arrayBuffers": 72324
    },
    "uptime": 36.6389601
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930656271_9lnbbeamt",
  "timestamp": "2025-10-08T13:37:36.271Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:350:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:37:36.271Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 77287424,
      "heapTotal": 32288768,
      "heapUsed": 30103656,
      "external": 2343449,
      "arrayBuffers": 25574
    },
    "uptime": 38.2036269
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930669530_pbbm1rk2z",
  "timestamp": "2025-10-08T13:37:49.530Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:277:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `bookings` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759930669491",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:30",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":1,\"name\":\"تغيير الزيت\",\"category\":\"عام\",\"duration\":30,\"price\":150,\"priority\":\"standard\"}]",
    "2025-10-08 13:37:49",
    "2025-10-08 13:37:49"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:30",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 1,
          "name": "تغيير الزيت",
          "category": "عام",
          "duration": 30,
          "price": 150,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "427",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T13:37:49.530Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 79257600,
      "heapTotal": 32550912,
      "heapUsed": 30811248,
      "external": 2344502,
      "arrayBuffers": 26627
    },
    "uptime": 51.4625099
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930670300_fwlphoigh",
  "timestamp": "2025-10-08T13:37:50.300Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:277:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `bookings` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759930670294",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:30",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":1,\"name\":\"تغيير الزيت\",\"category\":\"عام\",\"duration\":30,\"price\":150,\"priority\":\"standard\"}]",
    "2025-10-08 13:37:50",
    "2025-10-08 13:37:50"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:30",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 1,
          "name": "تغيير الزيت",
          "category": "عام",
          "duration": 30,
          "price": 150,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "427",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T13:37:50.299Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 79622144,
      "heapTotal": 32813056,
      "heapUsed": 30665344,
      "external": 2352754,
      "arrayBuffers": 34879
    },
    "uptime": 52.2318777
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930670847_ka58c9hx2",
  "timestamp": "2025-10-08T13:37:50.847Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:277:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `bookings` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759930670845",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:30",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":1,\"name\":\"تغيير الزيت\",\"category\":\"عام\",\"duration\":30,\"price\":150,\"priority\":\"standard\"}]",
    "2025-10-08 13:37:50",
    "2025-10-08 13:37:50"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:30",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 1,
          "name": "تغيير الزيت",
          "category": "عام",
          "duration": 30,
          "price": 150,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "427",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T13:37:50.847Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 79691776,
      "heapTotal": 32813056,
      "heapUsed": 31165248,
      "external": 2356338,
      "arrayBuffers": 38463
    },
    "uptime": 52.7798008
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930671025_76s1mn2t4",
  "timestamp": "2025-10-08T13:37:51.025Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:350:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:37:51.025Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 79859712,
      "heapTotal": 34385920,
      "heapUsed": 31316072,
      "external": 2351937,
      "arrayBuffers": 34062
    },
    "uptime": 52.9577419
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930671612_43lswojn6",
  "timestamp": "2025-10-08T13:37:51.612Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:350:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:37:51.612Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80556032,
      "heapTotal": 33861632,
      "heapUsed": 31340368,
      "external": 2360322,
      "arrayBuffers": 42447
    },
    "uptime": 53.544617
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930672580_ey5twejjq",
  "timestamp": "2025-10-08T13:37:52.580Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:350:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:37:52.580Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80576512,
      "heapTotal": 33861632,
      "heapUsed": 31739936,
      "external": 2360467,
      "arrayBuffers": 42592
    },
    "uptime": 54.5121533
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930709670_3bvxbflhh",
  "timestamp": "2025-10-08T13:38:29.670Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:350:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:38:29.670Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 81395712,
      "heapTotal": 34910208,
      "heapUsed": 32792192,
      "external": 2369470,
      "arrayBuffers": 51595
    },
    "uptime": 91.6031592
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930712751_83xdeur73",
  "timestamp": "2025-10-08T13:38:32.751Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:354:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:38:32.751Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129204224,
      "heapTotal": 87076864,
      "heapUsed": 29884472,
      "external": 2351585,
      "arrayBuffers": 33750
    },
    "uptime": 2.2610533
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759930714478_1su0ilo5n",
  "timestamp": "2025-10-08T13:38:34.478Z",
  "message": "Unknown column 'Booking.booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async Booking.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async Promise.all (index 1)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:354:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `Booking`.`id`, `Booking`.`booking_number` AS `bookingNumber`, `Booking`.`customer_name` AS `customerName`, `Booking`.`customer_phone` AS `customerPhone`, `Booking`.`customer_email` AS `customerEmail`, `Booking`.`branch_id` AS `branchId`, `Booking`.`table_id` AS `tableId`, `Booking`.`booking_date` AS `bookingDate`, `Booking`.`booking_time` AS `bookingTime`, `Booking`.`status`, `Booking`.`total_price` AS `totalPrice`, `Booking`.`final_amount` AS `finalAmount`, `Booking`.`payment_status` AS `paymentStatus`, `Booking`.`notes`, `Booking`.`special_requests` AS `specialRequests`, `Booking`.`created_at` AS `createdAt`, `Booking`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName`, `table`.`id` AS `table.id`, `table`.`name` AS `table.name`, `table`.`tableNumber` AS `table.tableNumber`, `table`.`capacity` AS `table.capacity` FROM `bookings` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id` ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::ffff:127.0.0.1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:38:34.478Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129302528,
      "heapTotal": 87076864,
      "heapUsed": 30584416,
      "external": 2352255,
      "arrayBuffers": 34380
    },
    "uptime": 3.9880295
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759931240372_4mn3wep8a",
  "timestamp": "2025-10-08T13:47:20.372Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:358:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:47:20.372Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 78073856,
      "heapTotal": 32550912,
      "heapUsed": 29604744,
      "external": 2352291,
      "arrayBuffers": 34456
    },
    "uptime": 74.1877604
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759931240864_nhyzjfzg9",
  "timestamp": "2025-10-08T13:47:20.864Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:358:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:47:20.864Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 78704640,
      "heapTotal": 32026624,
      "heapUsed": 29743440,
      "external": 2351770,
      "arrayBuffers": 33895
    },
    "uptime": 74.6795377
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759931242018_bkzrp50sa",
  "timestamp": "2025-10-08T13:47:22.018Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:358:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T13:47:22.018Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 78725120,
      "heapTotal": 32288768,
      "heapUsed": 30195240,
      "external": 2360107,
      "arrayBuffers": 42232
    },
    "uptime": 75.8333639
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932533626_t2e97ko62",
  "timestamp": "2025-10-08T14:08:53.626Z",
  "message": "Unknown column 'Booking.booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async Booking.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async Promise.all (index 1)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `Booking`.`id`, `Booking`.`booking_number` AS `bookingNumber`, `Booking`.`customer_name` AS `customerName`, `Booking`.`customer_phone` AS `customerPhone`, `Booking`.`customer_email` AS `customerEmail`, `Booking`.`branch_id` AS `branchId`, `Booking`.`table_id` AS `tableId`, `Booking`.`booking_date` AS `bookingDate`, `Booking`.`booking_time` AS `bookingTime`, `Booking`.`status`, `Booking`.`total_price` AS `totalPrice`, `Booking`.`final_amount` AS `finalAmount`, `Booking`.`payment_status` AS `paymentStatus`, `Booking`.`notes`, `Booking`.`special_requests` AS `specialRequests`, `Booking`.`created_at` AS `createdAt`, `Booking`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName`, `table`.`id` AS `table.id`, `table`.`name` AS `table.name`, `table`.`tableNumber` AS `table.tableNumber`, `table`.`capacity` AS `table.capacity` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id` ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8",
      "if-none-match": "W/\"24-fDxFN8Mf1SgODCZgCVo8S9iW524\""
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:08:53.626Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86147072,
      "heapTotal": 38318080,
      "heapUsed": 36659872,
      "external": 2401431,
      "arrayBuffers": 83596
    },
    "uptime": 325.1156256
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932534510_iia6gqbnt",
  "timestamp": "2025-10-08T14:08:54.510Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:08:54.510Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86016000,
      "heapTotal": 37793792,
      "heapUsed": 32692208,
      "external": 2379364,
      "arrayBuffers": 61489
    },
    "uptime": 325.9990892
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932535719_vw1993gpw",
  "timestamp": "2025-10-08T14:08:55.719Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:08:55.719Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 86052864,
      "heapTotal": 38055936,
      "heapUsed": 32216760,
      "external": 2370895,
      "arrayBuffers": 53020
    },
    "uptime": 327.2081919
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932666741_ry4u0xzav",
  "timestamp": "2025-10-08T14:11:06.741Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:11:06.740Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90877952,
      "heapTotal": 37793792,
      "heapUsed": 30625552,
      "external": 2343630,
      "arrayBuffers": 25755
    },
    "uptime": 458.2303675
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932667560_txoa1zohk",
  "timestamp": "2025-10-08T14:11:07.560Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:11:07.560Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90955776,
      "heapTotal": 41988096,
      "heapUsed": 32200656,
      "external": 2384799,
      "arrayBuffers": 66924
    },
    "uptime": 459.0500767
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932669370_3pdsryh8o",
  "timestamp": "2025-10-08T14:11:09.370Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:11:09.370Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 90959872,
      "heapTotal": 41988096,
      "heapUsed": 32576936,
      "external": 2384944,
      "arrayBuffers": 67069
    },
    "uptime": 460.8598283
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932702286_kbhiwqdvn",
  "timestamp": "2025-10-08T14:11:42.286Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:302:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `BOOKINGS` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759932702272",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:00",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":4,\"name\":\"فحص المكيف\",\"category\":\"عام\",\"duration\":60,\"price\":300,\"priority\":\"standard\"}]",
    "2025-10-08 14:11:42",
    "2025-10-08 14:11:42"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:00",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 4,
          "name": "فحص المكيف",
          "category": "عام",
          "duration": 60,
          "price": 300,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "425",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T14:11:42.286Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91058176,
      "heapTotal": 40939520,
      "heapUsed": 33036336,
      "external": 2384799,
      "arrayBuffers": 66924
    },
    "uptime": 493.7766625
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932703097_xw0o153y9",
  "timestamp": "2025-10-08T14:11:43.097Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:302:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `BOOKINGS` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759932703092",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:00",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":4,\"name\":\"فحص المكيف\",\"category\":\"عام\",\"duration\":60,\"price\":300,\"priority\":\"standard\"}]",
    "2025-10-08 14:11:43",
    "2025-10-08 14:11:43"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:00",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 4,
          "name": "فحص المكيف",
          "category": "عام",
          "duration": 60,
          "price": 300,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "425",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T14:11:43.097Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91156480,
      "heapTotal": 40939520,
      "heapUsed": 33562832,
      "external": 2388369,
      "arrayBuffers": 70494
    },
    "uptime": 494.5871228
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932704385_5yikf79et",
  "timestamp": "2025-10-08T14:11:44.385Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:302:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `BOOKINGS` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759932704380",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:00",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":4,\"name\":\"فحص المكيف\",\"category\":\"عام\",\"duration\":60,\"price\":300,\"priority\":\"standard\"}]",
    "2025-10-08 14:11:44",
    "2025-10-08 14:11:44"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:00",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 4,
          "name": "فحص المكيف",
          "category": "عام",
          "duration": 60,
          "price": 300,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "425",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T14:11:44.385Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91156480,
      "heapTotal": 39890944,
      "heapUsed": 33306016,
      "external": 2385852,
      "arrayBuffers": 67977
    },
    "uptime": 495.8748533
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932704454_3mtve1tz7",
  "timestamp": "2025-10-08T14:11:44.454Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:11:44.454Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91115520,
      "heapTotal": 39890944,
      "heapUsed": 33856816,
      "external": 2384980,
      "arrayBuffers": 67105
    },
    "uptime": 495.9437327
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932705027_xg330pruq",
  "timestamp": "2025-10-08T14:11:45.027Z",
  "message": "Unknown column 'Booking.booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async Booking.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async Promise.all (index 1)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `Booking`.`id`, `Booking`.`booking_number` AS `bookingNumber`, `Booking`.`customer_name` AS `customerName`, `Booking`.`customer_phone` AS `customerPhone`, `Booking`.`customer_email` AS `customerEmail`, `Booking`.`branch_id` AS `branchId`, `Booking`.`table_id` AS `tableId`, `Booking`.`booking_date` AS `bookingDate`, `Booking`.`booking_time` AS `bookingTime`, `Booking`.`status`, `Booking`.`total_price` AS `totalPrice`, `Booking`.`final_amount` AS `finalAmount`, `Booking`.`payment_status` AS `paymentStatus`, `Booking`.`notes`, `Booking`.`special_requests` AS `specialRequests`, `Booking`.`created_at` AS `createdAt`, `Booking`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName`, `table`.`id` AS `table.id`, `table`.`name` AS `table.name`, `table`.`tableNumber` AS `table.tableNumber`, `table`.`capacity` AS `table.capacity` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id` ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:11:45.027Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91119616,
      "heapTotal": 41463808,
      "heapUsed": 34002072,
      "external": 2393320,
      "arrayBuffers": 75445
    },
    "uptime": 496.5163756
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932705650_lj4jpjc4j",
  "timestamp": "2025-10-08T14:11:45.650Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:11:45.650Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91123712,
      "heapTotal": 41463808,
      "heapUsed": 34380128,
      "external": 2393458,
      "arrayBuffers": 75583
    },
    "uptime": 497.1395323
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932753014_9cexe0x1p",
  "timestamp": "2025-10-08T14:12:33.014Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:302:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `BOOKINGS` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759932753002",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:00",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":4,\"name\":\"فحص المكيف\",\"category\":\"عام\",\"duration\":60,\"price\":300,\"priority\":\"standard\"}]",
    "2025-10-08 14:12:33",
    "2025-10-08 14:12:33"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:00",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 4,
          "name": "فحص المكيف",
          "category": "عام",
          "duration": 60,
          "price": 300,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "425",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T14:12:33.014Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91152384,
      "heapTotal": 41988096,
      "heapUsed": 34740240,
      "external": 2404682,
      "arrayBuffers": 86807
    },
    "uptime": 544.5029282
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932753697_2y9q3lx4q",
  "timestamp": "2025-10-08T14:12:33.697Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:302:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `BOOKINGS` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759932753687",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:00",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":4,\"name\":\"فحص المكيف\",\"category\":\"عام\",\"duration\":60,\"price\":300,\"priority\":\"standard\"}]",
    "2025-10-08 14:12:33",
    "2025-10-08 14:12:33"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:00",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 4,
          "name": "فحص المكيف",
          "category": "عام",
          "duration": 60,
          "price": 300,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "425",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T14:12:33.697Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91164672,
      "heapTotal": 41201664,
      "heapUsed": 34591680,
      "external": 2401680,
      "arrayBuffers": 83805
    },
    "uptime": 545.1852564
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932755372_cnqx6tdo2",
  "timestamp": "2025-10-08T14:12:35.372Z",
  "message": "Unknown column 'booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.insert (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:308:21)\n    at async model.save (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:2490:35)\n    at async Booking.create (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1362:12)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:302:21",
  "name": "SequelizeDatabaseError",
  "sql": "INSERT INTO `BOOKINGS` (`id`,`booking_number`,`customer_name`,`customer_phone`,`customer_email`,`branch_id`,`table_id`,`booking_date`,`booking_time`,`status`,`total_price`,`final_amount`,`payment_status`,`notes`,`special_requests`,`created_at`,`updated_at`) VALUES (DEFAULT,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);",
  "parameters": [
    "BK1759932755340",
    "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
    "01028454790",
    "mido10sb@gmail.com",
    1,
    1,
    "2025-10-08",
    "08:00",
    "confirmed",
    0,
    0,
    "unpaid",
    "",
    "[{\"id\":3,\"name\":\"تغيير الإطارات\",\"category\":\"عام\",\"duration\":20,\"price\":100,\"priority\":\"standard\"},{\"id\":4,\"name\":\"فحص المكيف\",\"category\":\"عام\",\"duration\":60,\"price\":300,\"priority\":\"standard\"}]",
    "2025-10-08 14:12:35",
    "2025-10-08 14:12:35"
  ],
  "context": {
    "endpoint": "POST /api/v1/bookings",
    "requestBody": {
      "customerName": "mahmoud SABER MAHMOUD BAHNSI KHAMIS",
      "customerPhone": "01028454790",
      "customerEmail": "mido10sb@gmail.com",
      "branchId": 1,
      "tableId": 1,
      "date": "2025-10-08",
      "time": "08:00",
      "services": [
        {
          "id": 3,
          "name": "تغيير الإطارات",
          "category": "عام",
          "duration": 20,
          "price": 100,
          "priority": "standard"
        },
        {
          "id": 4,
          "name": "فحص المكيف",
          "category": "عام",
          "duration": 60,
          "price": 300,
          "priority": "standard"
        }
      ],
      "notes": ""
    },
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "content-length": "425",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "content-type": "application/json",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
  },
  "additionalInfo": {
    "operation": "create_booking",
    "timestamp": "2025-10-08T14:12:35.372Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91172864,
      "heapTotal": 41201664,
      "heapUsed": 35081560,
      "external": 2405250,
      "arrayBuffers": 87375
    },
    "uptime": 546.8605814
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932755474_vmodrtqdr",
  "timestamp": "2025-10-08T14:12:35.474Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:12:35.473Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91136000,
      "heapTotal": 41201664,
      "heapUsed": 35277176,
      "external": 2409993,
      "arrayBuffers": 92118
    },
    "uptime": 546.9621513
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932756276_esyflphdw",
  "timestamp": "2025-10-08T14:12:36.276Z",
  "message": "Unknown column 'Booking.booking_number' in 'field list'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async Booking.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async Promise.all (index 1)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `Booking`.`id`, `Booking`.`booking_number` AS `bookingNumber`, `Booking`.`customer_name` AS `customerName`, `Booking`.`customer_phone` AS `customerPhone`, `Booking`.`customer_email` AS `customerEmail`, `Booking`.`branch_id` AS `branchId`, `Booking`.`table_id` AS `tableId`, `Booking`.`booking_date` AS `bookingDate`, `Booking`.`booking_time` AS `bookingTime`, `Booking`.`status`, `Booking`.`total_price` AS `totalPrice`, `Booking`.`final_amount` AS `finalAmount`, `Booking`.`payment_status` AS `paymentStatus`, `Booking`.`notes`, `Booking`.`special_requests` AS `specialRequests`, `Booking`.`created_at` AS `createdAt`, `Booking`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName`, `table`.`id` AS `table.id`, `table`.`name` AS `table.name`, `table`.`tableNumber` AS `table.tableNumber`, `table`.`capacity` AS `table.capacity` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id` ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:12:36.276Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92012544,
      "heapTotal": 41201664,
      "heapUsed": 35472032,
      "external": 2410125,
      "arrayBuffers": 92250
    },
    "uptime": 547.7645166
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759932757662_sdnctn1uj",
  "timestamp": "2025-10-08T14:12:37.662Z",
  "message": "Unknown column 'Booking.table_id' in 'on clause'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async MySQLQueryInterface.rawSelect (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:434:18)\n    at async Booking.aggregate (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1277:19)\n    at async Booking.count (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1306:20)\n    at async Promise.all (index 0)\n    at async Booking.findAndCountAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1322:27)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\bookingRoutes.js:375:20",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT count(`Booking`.`id`) AS `count` FROM `BOOKINGS` AS `Booking` LEFT OUTER JOIN `Branches` AS `branch` ON `Booking`.`branch_id` = `branch`.`id` LEFT OUTER JOIN `TABLES` AS `table` ON `Booking`.`table_id` = `table`.`id`;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/bookings",
    "query": {},
    "headers": {
      "host": "localhost:4000",
      "connection": "keep-alive",
      "sec-ch-ua-platform": "\"Windows\"",
      "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzU5OTEzOTQ1LCJleHAiOjE3Njc2ODk5NDV9.y3GbfaFbQdE30lg6jLABc-vUOTv0tO-mi1KFwHcFYTM",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "sec-ch-ua": "\"Chromium\";v=\"140\", \"Not=A?Brand\";v=\"24\", \"Google Chrome\";v=\"140\"",
      "sec-ch-ua-mobile": "?0",
      "accept": "*/*",
      "origin": "http://localhost:8080",
      "sec-fetch-site": "same-site",
      "sec-fetch-mode": "cors",
      "sec-fetch-dest": "empty",
      "referer": "http://localhost:8080/",
      "accept-encoding": "gzip, deflate, br, zstd",
      "accept-language": "en-US,en;q=0.9,ar;q=0.8"
    },
    "ip": "::1"
  },
  "additionalInfo": {
    "operation": "fetch_bookings",
    "timestamp": "2025-10-08T14:12:37.662Z"
  },
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91299840,
      "heapTotal": 42774528,
      "heapUsed": 35517864,
      "external": 2410134,
      "arrayBuffers": 92259
    },
    "uptime": 549.1511075
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934862548_njmec720g",
  "timestamp": "2025-10-08T14:47:42.548Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91611136,
      "heapTotal": 43823104,
      "heapUsed": 33689592,
      "external": 2380757,
      "arrayBuffers": 62922
    },
    "uptime": 1480.4120225
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934862570_5vegvxkpm",
  "timestamp": "2025-10-08T14:47:42.570Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91635712,
      "heapTotal": 43823104,
      "heapUsed": 33775352,
      "external": 2380846,
      "arrayBuffers": 62971
    },
    "uptime": 1480.4328833
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934862957_vw5wzlv2t",
  "timestamp": "2025-10-08T14:47:42.957Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91652096,
      "heapTotal": 43298816,
      "heapUsed": 33571456,
      "external": 2380189,
      "arrayBuffers": 62314
    },
    "uptime": 1480.8199391
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934863054_ozsscwph3",
  "timestamp": "2025-10-08T14:47:43.054Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91656192,
      "heapTotal": 43298816,
      "heapUsed": 33834448,
      "external": 2388446,
      "arrayBuffers": 70571
    },
    "uptime": 1480.9175246
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934863493_mrujduxyy",
  "timestamp": "2025-10-08T14:47:43.493Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91656192,
      "heapTotal": 43298816,
      "heapUsed": 34030728,
      "external": 2388511,
      "arrayBuffers": 70636
    },
    "uptime": 1481.3562614
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934864479_u1b6xqwo4",
  "timestamp": "2025-10-08T14:47:44.479Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91881472,
      "heapTotal": 44347392,
      "heapUsed": 33722256,
      "external": 2388608,
      "arrayBuffers": 70506
    },
    "uptime": 1482.3424597
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934865964_zi1d1thhp",
  "timestamp": "2025-10-08T14:47:45.964Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91480064,
      "heapTotal": 44347392,
      "heapUsed": 33989864,
      "external": 2396638,
      "arrayBuffers": 78763
    },
    "uptime": 1483.8277165
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934865982_7owhkwjdm",
  "timestamp": "2025-10-08T14:47:45.982Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91480064,
      "heapTotal": 44347392,
      "heapUsed": 34185896,
      "external": 2396703,
      "arrayBuffers": 78828
    },
    "uptime": 1483.8454209
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934866394_4ay4uw2di",
  "timestamp": "2025-10-08T14:47:46.394Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91492352,
      "heapTotal": 44347392,
      "heapUsed": 34391128,
      "external": 2396768,
      "arrayBuffers": 78893
    },
    "uptime": 1484.2575812
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934866473_yrpk18n71",
  "timestamp": "2025-10-08T14:47:46.473Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91504640,
      "heapTotal": 43298816,
      "heapUsed": 34025904,
      "external": 2388397,
      "arrayBuffers": 70522
    },
    "uptime": 1484.3366274
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934867353_uwkkpsoag",
  "timestamp": "2025-10-08T14:47:47.353Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91504640,
      "heapTotal": 43298816,
      "heapUsed": 34287456,
      "external": 2396654,
      "arrayBuffers": 78779
    },
    "uptime": 1485.2159907
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759934867817_xr53dnbh4",
  "timestamp": "2025-10-08T14:47:47.817Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91504640,
      "heapTotal": 43298816,
      "heapUsed": 34513944,
      "external": 2396719,
      "arrayBuffers": 78844
    },
    "uptime": 1485.6801774
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935045160_3e14f0djv",
  "timestamp": "2025-10-08T14:50:45.160Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91873280,
      "heapTotal": 44871680,
      "heapUsed": 36809480,
      "external": 2413685,
      "arrayBuffers": 95810
    },
    "uptime": 1663.022917
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935045196_7a0fynjl9",
  "timestamp": "2025-10-08T14:50:45.196Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 91877376,
      "heapTotal": 44871680,
      "heapUsed": 36882752,
      "external": 2413734,
      "arrayBuffers": 95859
    },
    "uptime": 1663.0585021
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935045744_jz6ze8xtw",
  "timestamp": "2025-10-08T14:50:45.744Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92557312,
      "heapTotal": 46444544,
      "heapUsed": 36886016,
      "external": 2413924,
      "arrayBuffers": 96049
    },
    "uptime": 1663.6060082
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935045987_uv4h1ijq2",
  "timestamp": "2025-10-08T14:50:45.987Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92561408,
      "heapTotal": 46444544,
      "heapUsed": 37079104,
      "external": 2413989,
      "arrayBuffers": 96114
    },
    "uptime": 1663.8507145
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935046382_64qjr9l3i",
  "timestamp": "2025-10-08T14:50:46.382Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92565504,
      "heapTotal": 46444544,
      "heapUsed": 37333624,
      "external": 2422246,
      "arrayBuffers": 104371
    },
    "uptime": 1664.2441151
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935046549_nhdgkob3t",
  "timestamp": "2025-10-08T14:50:46.549Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92565504,
      "heapTotal": 45395968,
      "heapUsed": 36780680,
      "external": 2413555,
      "arrayBuffers": 95680
    },
    "uptime": 1664.4115179
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935055601_jj78aloib",
  "timestamp": "2025-10-08T14:50:55.601Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = '1' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "1",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92626944,
      "heapTotal": 45395968,
      "heapUsed": 37134856,
      "external": 2413620,
      "arrayBuffers": 95745
    },
    "uptime": 1673.4630647
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935055612_os5j7i2ma",
  "timestamp": "2025-10-08T14:50:55.612Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = '1' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "1",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92643328,
      "heapTotal": 45395968,
      "heapUsed": 37342920,
      "external": 2421877,
      "arrayBuffers": 104002
    },
    "uptime": 1673.474314
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935056034_fu5dv0ylj",
  "timestamp": "2025-10-08T14:50:56.034Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = '1' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "1",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92643328,
      "heapTotal": 45395968,
      "heapUsed": 37531128,
      "external": 2421942,
      "arrayBuffers": 104067
    },
    "uptime": 1673.8962069
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935056068_ljxh2ha71",
  "timestamp": "2025-10-08T14:50:56.068Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = '1' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "1",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92643328,
      "heapTotal": 45395968,
      "heapUsed": 37099280,
      "external": 2413571,
      "arrayBuffers": 95696
    },
    "uptime": 1673.9306286
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935056655_k5wk5ldps",
  "timestamp": "2025-10-08T14:50:56.655Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = '1' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "1",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92643328,
      "heapTotal": 45395968,
      "heapUsed": 37293928,
      "external": 2413636,
      "arrayBuffers": 95761
    },
    "uptime": 1674.517298
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935057113_odwxti6my",
  "timestamp": "2025-10-08T14:50:57.113Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = '1' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "1",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92643328,
      "heapTotal": 45395968,
      "heapUsed": 37547784,
      "external": 2421893,
      "arrayBuffers": 104018
    },
    "uptime": 1674.9752436
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935058607_ypfxwubx6",
  "timestamp": "2025-10-08T14:50:58.607Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92643328,
      "heapTotal": 45395968,
      "heapUsed": 37857008,
      "external": 2413587,
      "arrayBuffers": 95712
    },
    "uptime": 1676.4692421
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935058619_brbkdxru3",
  "timestamp": "2025-10-08T14:50:58.619Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92643328,
      "heapTotal": 45395968,
      "heapUsed": 37643392,
      "external": 2413555,
      "arrayBuffers": 95680
    },
    "uptime": 1676.4812407
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935059187_72w53oaso",
  "timestamp": "2025-10-08T14:50:59.187Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 93167616,
      "heapTotal": 46968832,
      "heapUsed": 37623856,
      "external": 2421872,
      "arrayBuffers": 103997
    },
    "uptime": 1677.04966
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935059269_g4gmoy06r",
  "timestamp": "2025-10-08T14:50:59.269Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 93302784,
      "heapTotal": 46968832,
      "heapUsed": 37825816,
      "external": 2421937,
      "arrayBuffers": 104062
    },
    "uptime": 1677.1311711
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935060165_evg7ijgpi",
  "timestamp": "2025-10-08T14:51:00.165Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92368896,
      "heapTotal": 38055936,
      "heapUsed": 28832808,
      "external": 2342098,
      "arrayBuffers": 25627
    },
    "uptime": 1678.0277679
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935060491_1rx2ume7p",
  "timestamp": "2025-10-08T14:51:00.491Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92516352,
      "heapTotal": 38055936,
      "heapUsed": 29127816,
      "external": 2342163,
      "arrayBuffers": 25692
    },
    "uptime": 1678.3538182
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935070119_38yoghmof",
  "timestamp": "2025-10-08T14:51:10.119Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92545024,
      "heapTotal": 38055936,
      "heapUsed": 28927288,
      "external": 2350274,
      "arrayBuffers": 33803
    },
    "uptime": 1687.9816932
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935070154_fez2wwuyi",
  "timestamp": "2025-10-08T14:51:10.154Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92545024,
      "heapTotal": 38055936,
      "heapUsed": 29095312,
      "external": 2350339,
      "arrayBuffers": 33868
    },
    "uptime": 1688.0163755
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935070487_cml1pg3wd",
  "timestamp": "2025-10-08T14:51:10.487Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92545024,
      "heapTotal": 38055936,
      "heapUsed": 29349328,
      "external": 2350404,
      "arrayBuffers": 33933
    },
    "uptime": 1688.3492888
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935070630_kkkmn9qmh",
  "timestamp": "2025-10-08T14:51:10.630Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92545024,
      "heapTotal": 38055936,
      "heapUsed": 29543248,
      "external": 2350469,
      "arrayBuffers": 33998
    },
    "uptime": 1688.4925774
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935071183_o3txt5lvv",
  "timestamp": "2025-10-08T14:51:11.183Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:48:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92545024,
      "heapTotal": 38055936,
      "heapUsed": 29129080,
      "external": 2358482,
      "arrayBuffers": 42011
    },
    "uptime": 1689.0448001
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935072066_5h0m7kobk",
  "timestamp": "2025-10-08T14:51:12.066Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:306:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 92545024,
      "heapTotal": 38055936,
      "heapUsed": 29324416,
      "external": 2358547,
      "arrayBuffers": 42076
    },
    "uptime": 1689.9285703
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935182975_mecvk1v9x",
  "timestamp": "2025-10-08T14:53:02.975Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129765376,
      "heapTotal": 87339008,
      "heapUsed": 34031872,
      "external": 2465623,
      "arrayBuffers": 147788
    },
    "uptime": 15.6391659
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935183210_jqx49fsun",
  "timestamp": "2025-10-08T14:53:03.210Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129765376,
      "heapTotal": 87339008,
      "heapUsed": 34147000,
      "external": 2465712,
      "arrayBuffers": 147837
    },
    "uptime": 15.873382
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935183685_gem97cqjv",
  "timestamp": "2025-10-08T14:53:03.685Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129798144,
      "heapTotal": 87339008,
      "heapUsed": 34527392,
      "external": 2465777,
      "arrayBuffers": 147902
    },
    "uptime": 16.3482039
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935184012_ok1vpmgjl",
  "timestamp": "2025-10-08T14:53:04.012Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129810432,
      "heapTotal": 87339008,
      "heapUsed": 34758376,
      "external": 2474034,
      "arrayBuffers": 156159
    },
    "uptime": 16.6755503
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935184251_nci7hkjjw",
  "timestamp": "2025-10-08T14:53:04.251Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `QUICK_SALES` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129888256,
      "heapTotal": 87863296,
      "heapUsed": 35163000,
      "external": 2474099,
      "arrayBuffers": 156224
    },
    "uptime": 16.9144566
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935184572_qr6e1onp4",
  "timestamp": "2025-10-08T14:53:04.572Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `QUICK_SALES` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 129904640,
      "heapTotal": 87863296,
      "heapUsed": 35395496,
      "external": 2474164,
      "arrayBuffers": 156289
    },
    "uptime": 17.2359548
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935251952_240pf8fd2",
  "timestamp": "2025-10-08T14:54:11.952Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `quick_sales` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 136282112,
      "heapTotal": 90484736,
      "heapUsed": 61754760,
      "external": 2569086,
      "arrayBuffers": 251251
    },
    "uptime": 8.1221713
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935251991_208hcvxc0",
  "timestamp": "2025-10-08T14:54:11.991Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 136298496,
      "heapTotal": 90746880,
      "heapUsed": 61976504,
      "external": 2569191,
      "arrayBuffers": 251316
    },
    "uptime": 8.1612781
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935252317_m09seqc8i",
  "timestamp": "2025-10-08T14:54:12.317Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `quick_sales` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 136450048,
      "heapTotal": 90746880,
      "heapUsed": 62378912,
      "external": 2569256,
      "arrayBuffers": 251381
    },
    "uptime": 8.4872441
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935252480_8mojvb5zw",
  "timestamp": "2025-10-08T14:54:12.480Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 136519680,
      "heapTotal": 90746880,
      "heapUsed": 62621080,
      "external": 2577513,
      "arrayBuffers": 259638
    },
    "uptime": 8.6505593
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935253273_rzsmlp509",
  "timestamp": "2025-10-08T14:54:13.273Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 136523776,
      "heapTotal": 90746880,
      "heapUsed": 62859080,
      "external": 2577578,
      "arrayBuffers": 259703
    },
    "uptime": 9.4429147
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935253415_3xkfb4yyr",
  "timestamp": "2025-10-08T14:54:13.415Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `quick_sales` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 136548352,
      "heapTotal": 90746880,
      "heapUsed": 63208560,
      "external": 2577643,
      "arrayBuffers": 259768
    },
    "uptime": 9.5852046
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935292481_kszg2nqya",
  "timestamp": "2025-10-08T14:54:52.481Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `quick_sales` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80007168,
      "heapTotal": 33075200,
      "heapUsed": 30667744,
      "external": 2359805,
      "arrayBuffers": 41930
    },
    "uptime": 48.6517192
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935292515_cfl5m4b1b",
  "timestamp": "2025-10-08T14:54:52.515Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80080896,
      "heapTotal": 33075200,
      "heapUsed": 30757376,
      "external": 2359854,
      "arrayBuffers": 41979
    },
    "uptime": 48.6851817
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935292988_lcz5i92ux",
  "timestamp": "2025-10-08T14:54:52.988Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80101376,
      "heapTotal": 33075200,
      "heapUsed": 30982776,
      "external": 2359919,
      "arrayBuffers": 42044
    },
    "uptime": 49.1583792
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935292999_weazgchzx",
  "timestamp": "2025-10-08T14:54:52.998Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `quick_sales` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80121856,
      "heapTotal": 33075200,
      "heapUsed": 31295768,
      "external": 2368176,
      "arrayBuffers": 50301
    },
    "uptime": 49.1688082
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935294103_p9nf7p58p",
  "timestamp": "2025-10-08T14:54:54.103Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80248832,
      "heapTotal": 33337344,
      "heapUsed": 30779416,
      "external": 2367997,
      "arrayBuffers": 50122
    },
    "uptime": 50.2730453
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935294339_8eqy0shz5",
  "timestamp": "2025-10-08T14:54:54.339Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `quick_sales` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80277504,
      "heapTotal": 33337344,
      "heapUsed": 31069168,
      "external": 2368062,
      "arrayBuffers": 50187
    },
    "uptime": 50.5088984
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935383633_a6af5z0i8",
  "timestamp": "2025-10-08T14:56:23.633Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `quick_sales` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80171008,
      "heapTotal": 33599488,
      "heapUsed": 31739312,
      "external": 2376667,
      "arrayBuffers": 58792
    },
    "uptime": 139.803827
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935383655_s0yjrl624",
  "timestamp": "2025-10-08T14:56:23.655Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80629760,
      "heapTotal": 34910208,
      "heapUsed": 31755896,
      "external": 2376330,
      "arrayBuffers": 58455
    },
    "uptime": 139.8258789
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935384477_cu2zt0jtq",
  "timestamp": "2025-10-08T14:56:24.477Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `quick_sales` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80633856,
      "heapTotal": 34910208,
      "heapUsed": 32044216,
      "external": 2376395,
      "arrayBuffers": 58520
    },
    "uptime": 140.6477622
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935384490_4bin0ysdl",
  "timestamp": "2025-10-08T14:56:24.490Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80633856,
      "heapTotal": 34910208,
      "heapUsed": 32251728,
      "external": 2384652,
      "arrayBuffers": 66777
    },
    "uptime": 140.660592
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935386477_1pa3u08or",
  "timestamp": "2025-10-08T14:56:26.477Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:52:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `QuickSale`.`id`, `QuickSale`.`sale_number` AS `saleNumber`, `QuickSale`.`customer_id` AS `customerId`, `QuickSale`.`customer_name` AS `customerName`, `QuickSale`.`customer_phone` AS `customerPhone`, `QuickSale`.`branch_id` AS `branchId`, `QuickSale`.`cashier_id` AS `cashierId`, `QuickSale`.`sale_date` AS `saleDate`, `QuickSale`.`sale_time` AS `saleTime`, `QuickSale`.`items`, `QuickSale`.`subtotal`, `QuickSale`.`discount_amount` AS `discountAmount`, `QuickSale`.`discount_percentage` AS `discountPercentage`, `QuickSale`.`tax_amount` AS `taxAmount`, `QuickSale`.`tax_percentage` AS `taxPercentage`, `QuickSale`.`total_amount` AS `totalAmount`, `QuickSale`.`payment_method` AS `paymentMethod`, `QuickSale`.`payment_details` AS `paymentDetails`, `QuickSale`.`status`, `QuickSale`.`notes`, `QuickSale`.`loyalty_points_earned` AS `loyaltyPointsEarned`, `QuickSale`.`loyalty_points_used` AS `loyaltyPointsUsed`, `QuickSale`.`receipt_printed` AS `receiptPrinted`, `QuickSale`.`created_at` AS `createdAt`, `QuickSale`.`updated_at` AS `updatedAt`, `branch`.`id` AS `branch.id`, `branch`.`arabicName` AS `branch.arabicName`, `branch`.`englishName` AS `branch.englishName` FROM `quick_sales` AS `QuickSale` LEFT OUTER JOIN `Branches` AS `branch` ON `QuickSale`.`branch_id` = `branch`.`id` WHERE `QuickSale`.`status` = 'undefined' AND `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`payment_method` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date' ORDER BY `createdAt` DESC LIMIT 0, 50;",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales",
    "query": {
      "branchId": "undefined",
      "paymentMethod": "undefined",
      "status": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80932864,
      "heapTotal": 34123776,
      "heapUsed": 31872128,
      "external": 2376330,
      "arrayBuffers": 58455
    },
    "uptime": 142.6471536
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935386495_1i6alvlvp",
  "timestamp": "2025-10-08T14:56:26.495Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 80941056,
      "heapTotal": 34123776,
      "heapUsed": 32086640,
      "external": 2376395,
      "arrayBuffers": 58520
    },
    "uptime": 142.6658868
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935403708_hfq79k3v7",
  "timestamp": "2025-10-08T14:56:43.708Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82644992,
      "heapTotal": 35696640,
      "heapUsed": 33763176,
      "external": 2403763,
      "arrayBuffers": 85888
    },
    "uptime": 159.879006
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935404470_vqjk78ybd",
  "timestamp": "2025-10-08T14:56:44.470Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82731008,
      "heapTotal": 35696640,
      "heapUsed": 33317760,
      "external": 2403828,
      "arrayBuffers": 85953
    },
    "uptime": 160.6403068
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935405126_1e1gglekn",
  "timestamp": "2025-10-08T14:56:45.126Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 82731008,
      "heapTotal": 35696640,
      "heapUsed": 33524248,
      "external": 2393013,
      "arrayBuffers": 75138
    },
    "uptime": 161.2962962
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935415686_27gnqff82",
  "timestamp": "2025-10-08T14:56:55.686Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83005440,
      "heapTotal": 35958784,
      "heapUsed": 34130360,
      "external": 2403763,
      "arrayBuffers": 85888
    },
    "uptime": 171.856253
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935416551_pm490v57p",
  "timestamp": "2025-10-08T14:56:56.551Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83009536,
      "heapTotal": 35958784,
      "heapUsed": 34332440,
      "external": 2403828,
      "arrayBuffers": 85953
    },
    "uptime": 172.7211813
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935417078_5jrfpzum0",
  "timestamp": "2025-10-08T14:56:57.078Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83103744,
      "heapTotal": 36220928,
      "heapUsed": 33865160,
      "external": 2401156,
      "arrayBuffers": 83281
    },
    "uptime": 173.2483903
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935426444_aqi64ydao",
  "timestamp": "2025-10-08T14:57:06.444Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83169280,
      "heapTotal": 36220928,
      "heapUsed": 34137088,
      "external": 2409413,
      "arrayBuffers": 91538
    },
    "uptime": 182.6143684
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935427287_049r4kzdu",
  "timestamp": "2025-10-08T14:57:07.287Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 83169280,
      "heapTotal": 36220928,
      "heapUsed": 34337720,
      "external": 2409478,
      "arrayBuffers": 91603
    },
    "uptime": 183.4575774
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935434326_beigoj5jf",
  "timestamp": "2025-10-08T14:57:14.326Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84426752,
      "heapTotal": 37531648,
      "heapUsed": 34973360,
      "external": 2425901,
      "arrayBuffers": 108026
    },
    "uptime": 190.4962093
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935435481_d2wbj8wgt",
  "timestamp": "2025-10-08T14:57:15.481Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84434944,
      "heapTotal": 37531648,
      "heapUsed": 35175608,
      "external": 2425966,
      "arrayBuffers": 108091
    },
    "uptime": 191.6518197
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935436226_1x1fbgq8d",
  "timestamp": "2025-10-08T14:57:16.226Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 84434944,
      "heapTotal": 37531648,
      "heapUsed": 35376432,
      "external": 2426031,
      "arrayBuffers": 108156
    },
    "uptime": 192.3960146
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935575986_6h6scv0xa",
  "timestamp": "2025-10-08T14:59:35.986Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88027136,
      "heapTotal": 42512384,
      "heapUsed": 34719256,
      "external": 2380747,
      "arrayBuffers": 62872
    },
    "uptime": 332.163456
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935576392_4jig0hqe2",
  "timestamp": "2025-10-08T14:59:36.392Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88297472,
      "heapTotal": 41725952,
      "heapUsed": 34605736,
      "external": 2385767,
      "arrayBuffers": 67892
    },
    "uptime": 332.5624019
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935577982_w383t3x9y",
  "timestamp": "2025-10-08T14:59:37.982Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88297472,
      "heapTotal": 41725952,
      "heapUsed": 34802616,
      "external": 2385832,
      "arrayBuffers": 67957
    },
    "uptime": 334.1524701
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935599985_tmzya2wy0",
  "timestamp": "2025-10-08T14:59:59.985Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\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:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88326144,
      "heapTotal": 42774528,
      "heapUsed": 35318640,
      "external": 2386229,
      "arrayBuffers": 68354
    },
    "uptime": 356.1562065
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935600716_8wq5tmgwb",
  "timestamp": "2025-10-08T15:00:00.716Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88588288,
      "heapTotal": 41988096,
      "heapUsed": 35199968,
      "external": 2385876,
      "arrayBuffers": 68001
    },
    "uptime": 356.8868174
  }
}
----------------------------------------------------------------------------------------------------
{
  "errorId": "ERR_1759935601833_8kb10uuvt",
  "timestamp": "2025-10-08T15:00:01.833Z",
  "message": "Incorrect DATE value: 'Invalid date'",
  "stack": "Error\n    at Query.run (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\mysql\\query.js:52:25)\n    at E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\sequelize.js:315:28\n    at async MySQLQueryInterface.select (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\dialects\\abstract\\query-interface.js:407:12)\n    at async QuickSale.findAll (E:\\مشاريع 2025\\MetaCoffe\\backend\\node_modules\\sequelize\\lib\\model.js:1140:21)\n    at async E:\\مشاريع 2025\\MetaCoffe\\backend\\routes\\quickSaleRoutes.js:317:19",
  "name": "SequelizeDatabaseError",
  "sql": "SELECT `status`, `payment_method` AS `paymentMethod`, `total_amount` AS `totalAmount`, `subtotal`, `discount_amount` AS `discountAmount`, `tax_amount` AS `taxAmount` FROM `quick_sales` AS `QuickSale` WHERE `QuickSale`.`branch_id` = 'undefined' AND `QuickSale`.`sale_date` BETWEEN 'Invalid date' AND 'Invalid date';",
  "parameters": {},
  "context": {
    "endpoint": "GET /api/v1/quick-sales/stats/summary",
    "query": {
      "branchId": "undefined",
      "dateFrom": "undefined",
      "dateTo": "undefined"
    }
  },
  "additionalInfo": {},
  "systemInfo": {
    "nodeVersion": "v22.13.1",
    "platform": "win32",
    "arch": "x64",
    "memoryUsage": {
      "rss": 88588288,
      "heapTotal": 41988096,
      "heapUsed": 35396440,
      "external": 2385941,
      "arrayBuffers": 68066
    },
    "uptime": 358.003998
  }
}
----------------------------------------------------------------------------------------------------
