/*
 Navicat MySQL Data Transfer

 Source Server         : BuyerKiosk - Local
 Source Server Type    : MariaDB
 Source Server Version : 110502 (11.5.2-MariaDB)
 Source Host           : localhost:3306
 Source Schema         : kiosk_pa00

 Target Server Type    : MariaDB
 Target Server Version : 110502 (11.5.2-MariaDB)
 File Encoding         : 65001

 Date: 01/02/2025 10:39:55
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for serviceQueue
-- ----------------------------
DROP TABLE IF EXISTS `serviceQueue`;
CREATE TABLE `serviceQueue` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dailyNum` int(11) NOT NULL,
  `customerID` int(11) unsigned NOT NULL,
  `timeEntered` timestamp NOT NULL DEFAULT current_timestamp(),
  `timeStarted` timestamp NULL DEFAULT NULL,
  `timeCompleted` timestamp NULL DEFAULT NULL,
  `employeeID` int(10) unsigned DEFAULT NULL,
  `textMe` tinyint(1) DEFAULT 0,
  `numItems` int(11) DEFAULT 0,
  `textSent` tinyint(1) DEFAULT 0,
  `isFinished` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `idx_customer` (`customerID`),
  KEY `employeeID` (`employeeID`),
  CONSTRAINT `fk_servicequeue_customer` FOREIGN KEY (`customerID`) REFERENCES `customers` (`customerID`) ON UPDATE CASCADE,
  CONSTRAINT `fk_servicequeue_employee` FOREIGN KEY (`employeeID`) REFERENCES `employees` (`employeeID`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;

SET FOREIGN_KEY_CHECKS = 1;
