-- Host: db-master-9.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$DxaXfsKluKlVGA/hlz3DFxezgqguHCR/mP37oCkHOF6Z1EXNC47G6','user','ak_4f36a9d665ace497','2023-04-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$rAjIJORNwB43r.aWAoxU94frX1olt3cwL0rckyZnVpevAEB9acWbA','user','ak_287860b3ff430dd4','2023-05-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$0FNg0coZqhOcHgpSmbrTQIYPrVMFlvvU1NQmFtWcKScJbdq/gOUWr','user','ak_6a768fc4967f5f5e','2023-04-17 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$NvH2CIviCnxb8oGuQp4PqgNv6l4HsYDnvu1DgeUNX3fq4np.33BxN','user','ak_4c3fa621dc121609','2023-08-19 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$45PzZfl3XXcc9rUXN.I0SW0HtfvID5Yxc.iK9naLCi8kiYOBdL5Y9','admin','ak_4fd63794390634ec','2023-03-06 10:04:00',NULL);

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

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


