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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$MiMTbNjYcXgTwlwXdxA8iYku1FV.2pzSSHZAeRnSu4EIbCutOzzOn','user','ak_4e7ea722108d9864','2023-01-17 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$yeVfI5Arg2ssij/Ynlj5l58.jUaJfkzITyAdb8RB/CSMUIZPKPq6f','user','ak_b407e0342663ca9b','2023-04-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$d9sgc5GPwVTVnLIdEd/dLdRcOUfkCXKawD06Ng6jbSh07I3Q6DwE5','admin','ak_7d7621550dcd7152','2023-10-28 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$WWxTO0xvRs0C3StI2NLa4wJKT.rsqGgi7XI9TerYBNORx/IZpLBcK','admin','ak_b79dee37589de8b4','2023-12-06 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$AbVyefw22PzcMIWp0/pggeb5XXhA9cDk0BgPqPTK6eCND/O5jtvkE','user','ak_57edc4bf3cf33aa9','2023-03-22 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$W8PqltA2.3WFIvY/qe9cdowoZhB/Jo9.RwPnMsS.Kg8VlIgAS3XLo','user','ak_982c09c2fba25243','2023-12-03 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$vYNqlhgFdn19GM9CJH0cGDtLbGr9rTQuN3qWoSzPfKN.IzVgBMkzK','user','ak_8017c8d6c0468d5b','2023-03-03 10:19:00',NULL);

