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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$8HNBTF.pC8CV5oif53QlSNxqUUH9HncMBkcR6RwGmYswqUCSSOly8','user','ak_6fe92c87af19f743','2023-07-14 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$ayuYsZFsmwc02PLCgXKmKBfC2zbNbvi/vnTxxt.G.YkjVxacF.Fuv','admin','ak_41f9d90b89261b2b','2023-06-27 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$V3kRTziD8EYb8jF/HQWlhcO5N9ht4LDmE/inH6sqoXOUHHW6kYbzu','user','ak_2f0a855f27f8f905','2023-09-05 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$JYpfnJNuSXsN2zZGhIWjJmoBqPRR6gS1CUN1TSNHmH4Y4MqoWBb.I','user','ak_da5d4ab993d48d0b','2023-04-26 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$p.GwpQQgmzV9jFkeJvYwQkdlSsHSeDvIm4EBOp7rgOljrNhazpLZG','user','ak_8e4eae547047a296','2023-12-12 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$6o37OZcz0D00bPHZm81uF006pOK3qsFE0cKKLeNr3qwv25mXUkZgQ','admin','ak_c21a5a37d6f0aa10','2023-11-18 10:14: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=20745;

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


