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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$yFM7/6Tc3VeOgL5fFylnyjFB4F6m9lWh56eLwGpPdy2JAphZpBTgd','user','ak_770e1a6877a9d80a','2023-11-02 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$7raUAEpyakiYcnsTua9mw9CxgRKSpKQbdINq8/vFr/G/20O31G3WH','user','ak_9e89cb026b01c93f','2023-01-02 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$XUfcfAzpeJiZzyj3.kCXsnuzhYxTJ4qdEWv94.xNnAuy.UxPfXa8X','user','ak_9b5f6b620dd1185f','2023-10-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$1fXLiP6j9axuwjEnymf/Y0/PYTwgJbLdFqiN8RuMEU9oW6seS36ZE','user','ak_83719981f1b854d7','2023-04-04 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$hC1mYKxz1KPzmBSr3KK/BpNjqZjH47khXeMi8C9u4ysOR6eZrjWU6','user','ak_8dfe76d500e8e0a9','2023-10-17 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$blDHyHNKNC.LodjD7P.0jyPJNQVF4Ce0Xx/3a.uccWDHgr93FC5Ho','user','ak_3260b962e0971530','2023-08-09 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$uUXjIkDeqOro4.KSzm/VpGaRfT8eW.s/EbK6nx7keV18hRspuUnns','admin','ak_9b551862fb2adfdf','2023-03-21 10:22: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=40050;

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


