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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=2412;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$ohHzUbjt2Xc5Cc1ifZxQ756TDUmBZPchJDLQI9oQg0abd/pIkttmF','user','ak_74275b9e463f15b9','2023-10-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$98U2Elaq01QyIOxZ7oyQu79YXZMw2rClPQUEj8.wMsCxoo2aZh1r6','user','ak_efaf016bc31b0a96','2023-05-02 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$8qqWbWCDZs0Ito/IBFCD6MTGnH10qKpIr6CtL/0aT2J0ZGzqQpF.x','user','ak_da6d963fa84160e8','2023-02-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$LyKbEWLCHXPIb3N09yhYA7vTtaWwuREGrZw9d9yQskZFMcCGi7RT3','user','ak_35f1e9265b46baf2','2023-11-15 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$cJ.f9kKFlo/1oqoMdJrR.vful.WVcU5AimRx6guttsht6Qqw2r1y1','admin','ak_f4e29e5a41e8d1e7','2023-03-19 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$9.ZTCI0DkroNI.0VetzHdpLmzCw.JL8P5Zkx8LyHaIjdDbR7iXqdy','user','ak_b188dcd6dd794adb','2023-12-05 10:18:00',NULL);

