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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$IOtl1Z4f.NZJRpWrKmL/x93oTwLkKM9mZ.3q.wDyw648NNxTwIgun','admin','ak_fc81e6f0b3b24154','2023-07-17 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$m53e8DYIpZ.oZ8q4crpAq.pSKQi3MSwFC2.SSZUIHve1MoQXLMYWh','admin','ak_412044da8dfd487e','2023-03-16 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$UKgaX7lwjjnr8rdqyqTErh3EaPvxATrVpLQqstDHyPKZhNpkDVXFC','user','ak_c7fead009079dda0','2023-08-04 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$llXdvoK1mYkbgtgUo0.4F7UpTCLQRTz75ZIlcdXU97.lTIuQBeRT4','admin','ak_43179987dcf6b68e','2023-11-03 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$KHaTCFJihJ3eGHiEV2ebGERfJSG85e/QBVCzC9eFdDj1IXLFf3GkI','admin','ak_ba0b7e3bdfcc1750','2023-07-13 10:13: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=9330;

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


