[
  {
    "type": "insert",
    "description": "Add Staff Chat Retention Cleanup job definition (Phase 8, ADR-4)",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT id FROM task_job_definitions WHERE name = 'staff-chat-retention' LIMIT 1",
    "sql": "INSERT INTO `task_job_definitions` (`name`, `displayName`, `className`, `schedule`, `queue`, `scope`, `timeout`, `maxRetries`, `retryBackoff`, `config`, `isEnabled`, `notifyOnFailure`, `notifyEmails`) VALUES ('staff-chat-retention', 'Staff Chat Message Retention Cleanup', 'BuyerKiosk\\\\StaffChat\\\\Jobs\\\\StaffChatRetentionJob', '0 3 * * *', 'default', 'per_store', 300, 3, 60, '{}', 1, 1, NULL)"
  },
  {
    "type": "insert",
    "description": "Add Staff Chat Outbox Processor job definition (Phase 7, ADR-7)",
    "database": "kiosk_buykiosk",
    "check_query": "SELECT id FROM task_job_definitions WHERE name = 'staff-chat-process-outbox' LIMIT 1",
    "sql": "INSERT INTO `task_job_definitions` (`name`, `displayName`, `className`, `schedule`, `queue`, `scope`, `timeout`, `maxRetries`, `retryBackoff`, `config`, `isEnabled`, `notifyOnFailure`, `notifyEmails`) VALUES ('staff-chat-process-outbox', 'Staff Chat Outbox Processor', 'BuyerKiosk\\\\StaffChat\\\\Jobs\\\\ProcessOutboxJob', '*/5 * * * *', 'default', 'per_store', 60, 3, 10, '{\"batch_size\": 50}', 1, 0, NULL)"
  }
]
