-- Host: db-master-5.internal    Database: customers


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=32678;

--
-- Dumping data for table `orders`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=38214;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$riyOuFjFU25EMMLi/W8KorFnjqwgHSW.kXHtcSVmh2pKOHomq3/Tz','admin','ak_6e4cc9eae051694e','2023-08-19 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$jZbTMj7tMdRCfjBrgeKBy0m7snfkQR6KTZiHPmj0jcGYLeHf7pQg/','user','ak_cad02329ef32c287','2023-01-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$TdWQxLb645Z78SijkPy/lpLZg4bhPDO4/DflrH.w.xb.bOPlY1Ubg','user','ak_c475bd2c66580293','2023-01-08 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$ASW6DcKx4TNdvf4DaDFHsMwQOI4WRN1bkl7Hy.NHnnFnMarcwFoG0','user','ak_11ff40bf269fa8f9','2023-06-28 10:16:00',NULL);

