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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$DuYt/w.i9EJxEbxE/d4FGqWYb.zrdzPi1fpH2dL94iVU/TatnGUGJ','user','ak_b536a96d432524e6','2023-06-27 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$YnEcw7CaqtjuefOgKXKTp1ShYzeNTxgHIZzV9u4yl25VaYlLq8Ijs','user','ak_9b30af91f76428e9','2023-02-14 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$24MpEPSZZFO5hfCt2J1WMa3gRW1Ids65mnHKE5h0bVSElewW4Rofa','user','ak_04639718c6a55fa4','2023-09-05 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$jW5HgCdbELaOBpkbV3.UaapJExEilTayGnrInD6s9dajLnMqastGJ','user','ak_f8dccedd8f403e69','2023-02-05 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$R5wY01zO0O0Sr.nTeQfyHTSfd1OiC6Z7blSIT72fZMAM2loQ7FB4d','user','ak_896a865d2a6d22f5','2023-01-08 10:09:00',NULL);

