/*
 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_buys

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

 Date: 22/11/2024 10:27:08
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for systemBuys
-- ----------------------------
DROP TABLE IF EXISTS `systemBuys`;
CREATE TABLE `systemBuys` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `timeStamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
  `origin` varchar(10) NOT NULL,
  `customerID` int(11) NOT NULL,
  `buyID` int(11) NOT NULL,
  `driversLicense` varchar(50) NOT NULL,
  `phoneNum` varchar(10) NOT NULL,
  `uuid` varchar(8) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `customerID` (`customerID`) USING BTREE,
  KEY `buyID` (`buyID`) USING BTREE,
  KEY `origin` (`origin`) USING HASH,
  KEY `driversLicense` (`driversLicense`) USING BTREE,
  KEY `uuid` (`uuid`) USING BTREE,
  KEY `timeStamp` (`timeStamp`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=17318730 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

SET FOREIGN_KEY_CHECKS = 1;
