-- Host: db-master-7.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=44705;

--
-- 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=36063;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$5B9OBldntPVF5aFbgHCa4fpSTHzTbUM0ROAumRMckys9aMB5a7ZX9','admin','ak_13c308a49173de1e','2023-07-28 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$buPrseWfRsoXki7FRMkCRm/FKi7PtSX7K0FTQt6a.Zvsat.Tp2KG8','admin','ak_fbfe3e5ed5514a79','2023-07-16 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$2bEZ8ollTTOC3QuGSOIUl0LuqWRIJ.vKI1ScUFoPCNUKcm115Ip59','admin','ak_4ae59263dd092a7c','2023-09-15 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$HWM4DaixDtnTdGzPjsZQ3N13Lz10zA8eKXViy3twFDBE6MGf6mERx','admin','ak_34bef5ba56237eb2','2023-03-27 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$OkVtldioE9gkthThLNiTl0ehr4D97hPoCwyhn90cNgC/S09/fT5TL','user','ak_840c62be6362454b','2023-11-08 10:17:00',NULL);

