[
  {
    "type": "create_table",
    "description": "Create service queue table",
    "database": "{{store}}",
    "check_query": "SHOW TABLES LIKE 'serviceQueue'",
    "sql": "CREATE TABLE `serviceQueue` (\n                  `id` int(11) NOT NULL AUTO_INCREMENT,\n                  `dailyNum` int(11) NOT NULL,\n                  `customerID` int(11) unsigned NOT NULL,\n                  `timeEntered` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n                  `timeStarted` TIMESTAMP NULL DEFAULT NULL,\n                  `timeCompleted` TIMESTAMP NULL DEFAULT NULL,\n                  `employeeID` int(10) unsigned DEFAULT NULL,\n                  `textMe` tinyint(1) DEFAULT 0,\n                  `numItems` int(11) DEFAULT 0,\n                  `textSent` tinyint(1) DEFAULT 0,\n                  `isFinished` tinyint(1) DEFAULT 0,\n                  PRIMARY KEY (`id`),\n                  INDEX `idx_customer` (`customerID`),\n                  KEY `employeeID` (`employeeID`),\n                  CONSTRAINT `fk_servicequeue_customer` \n                    FOREIGN KEY (`customerID`) \n                    REFERENCES `{{DATABASE}}`.`customers` (`customerID`) \n                    ON DELETE RESTRICT ON UPDATE CASCADE,\n                  CONSTRAINT `fk_servicequeue_employee` \n                    FOREIGN KEY (`employeeID`) \n                    REFERENCES `{{DATABASE}}`.`employees` (`employeeID`) \n                    ON DELETE RESTRICT ON UPDATE CASCADE\n                ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;"
  }
]