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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$yfaTrXFhg3fG.RY9LTlc.x28tkO9UO9nXPs.rH.PElJjbysWpeQ3.','admin','ak_3157ee5554528a74','2023-05-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$xKAdv/LIkmejcpF2hrOygyoOMlGWxJZS8B252Tb7ms20RDGm6Z5E3','admin','ak_3708bea652eab767','2023-10-07 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$GU8wvOdjy3xJ2qex8Eu/g7wi5jLAqhC4teJ0jsCG1GY.aIk/c05RE','user','ak_2ca9a73ebdae959b','2023-12-18 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$ckxHjbIH4nSF41hyRGbOIFhey9QEh1KrYHoLGk9ofkLRpZITbY.Ik','user','ak_f3dab031c5c372b2','2023-10-22 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$5ZzbcDXHS5hxooqCCnRvh7xxPDfAG9O8qNU28wCAR3ViAzt8Yeljb','admin','ak_9ebc99de08cd385b','2023-10-20 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$ViVbQfg3GgVRwNA2Af6OvigSNi78aWGOfxhywp6bzS6TiXL4YM/v1','admin','ak_06d960423a267a31','2023-04-04 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$fvTeYZagAqcPoW5xsT/6k.MUUOl4HJ2QXiqZZPg0KoB4lp/w2FjtA','user','ak_6df294db192e6314','2023-11-22 10:12:00',NULL);

