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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=42568;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$Gkyum749KN/QSKg.Lx.dkyT1nqvaqsOhuzPPNBKPUMT9AQr/WBN5u','user','ak_3a7e3ad427a6e588','2023-09-07 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$VnWgMhwv59yL0by0Lpg3liWRWUAoPBGR5fqycACZQh/YLDbIpZFUG','user','ak_b087ea20eae265f1','2023-11-02 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$cDR7mB/cWskyFL7BiohvhgiVmeEfNSUL64d0hvaRfqXule8EcDT7V','user','ak_9c002c9568239d03','2023-10-17 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$mPWXgFkpBcJ3s6FaNTYa6rVVLCCaqn8K4WiNBIOAk7JSRN71yyHSW','user','ak_92634b45e2980c8d','2023-03-11 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$9SI/SfR6v4WdIZw0olFtEiZQSDdrVW/Imqdif.E4mb9csm5jr2Fzy','admin','ak_cab47254c9c03ebc','2023-08-16 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$dHQk06Ym64JwEJ5yWXk6vCDMtFMC0oVVjaBeK17lQsEyT85pEx0Oy','user','ak_61063398a97913bc','2023-01-06 10:15:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$SXWJ4iBjyfuCgg267naqQIFCBwCvZq87SLMRjeeje6GlctlGYnvL2','user','ak_e41f113be75de941','2023-11-23 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=50212;

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


