[
  {
    "type": "alter_table",
    "description": "Add posState to buyQueue so we can distinguish DRS-driven QUOTE transitions (POS Print Detail / Print Summary in non-Style-Encore stores) from kiosk-driven processBuy(). 'active' = still on the left side; 'quote' = moved to the right side because the POS quoted the customer. Independent from checkoutStatus so paid/voided can still progress cleanly from either origin.",
    "database": "{{store}}",
    "check_query": "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'buyQueue' AND COLUMN_NAME = 'posState'",
    "sql": "ALTER TABLE `buyQueue` ADD COLUMN `posState` ENUM('active','quote') NOT NULL DEFAULT 'active' COMMENT 'POS state mirror. active = still on left side; quote = POS quoted the customer, moved to right side. Independent of checkedOut/checkoutStatus.' AFTER `checkoutStatus`"
  }
]
