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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$DQR2RdSMacnHjAi1jn6E8W8Afj.93EEEG4KP.goxHSYRWpEmmNREI','admin','ak_f22b1c5ae28b6e66','2023-03-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$7ruRfgRn5DrjJJWzkCf8ldKqOmB5T/9Xhcz96Kw6YNDrcXK8ZBzEc','user','ak_6110f0435b449e7e','2023-05-04 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$bMCQ13capYtT5QVkGGMM1FY3YIcgA.KU.lLRGbQ8gn.HzhsfpaO7L','user','ak_e53ab251a657e50b','2023-09-19 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$FcCpoVoiaWcKL0Wx09fRQjTHX2wtdB4K4W2kG6vcpHki.hVhWslt/','admin','ak_459cc1cfa67505f5','2023-04-28 10:19:00',NULL);

