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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$6/CKsvOj4STUDOoW1H90lEVRHmZftCQo0Q0MSKKIhQSWWwlgWtmN5','admin','ak_861db3ec23b7f4bd','2023-02-26 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$979hDHolibdTTx.a.1bsvA0rHW71sjx8HbAfREh936KUiKviRVLGZ','admin','ak_191f457ab1a3ba29','2023-05-06 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$ONeewSrS66/ECF6xjJtgTKWlo4RKCtkLWm6NNphfZHuR.cGKBWIyd','admin','ak_2fac9b074733ea74','2023-05-13 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$U/A6txOWWjzk0h2Cz3dwOQMqgnjYqVMZ6OoCN9bTfrVhMHemfhJqu','user','ak_cc2a529d838d550d','2023-10-22 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$JA5.DRKj677tyMxDrhJx/iKiCV.k8gJrI3DIMyTQGN9iwHQILqLfr','user','ak_bc26c7b51f211913','2023-12-21 10:03:00',NULL);

