-- Host: db-master-0.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$0LbvVsFznLPE3cogPLofa6OUrbmwtn5/OZyHEXIgKd/rCUscYfYkz','admin','ak_9ef906ed58b8104b','2023-04-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$Dzd33YvqzRmk.Z6xA/E9Wg8WX0xK4o9S8Q1/cuqEVGh34BanYEc1F','user','ak_e338a8d9d18aa991','2023-05-26 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$c22WuR1CyCoAqg0erGv2JWnRPvE3Bgp8lFbj56vMth3G97AlP8sSz','admin','ak_009d81d5d9293049','2023-09-11 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$NYON2koMpE2cOQ/iQyR0EEbXhV7Firt317sWNH5JFCdmc4ppr236X','user','ak_40503c1458ed5424','2023-06-17 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$r.xxdIDTXEaCcsUJNJW4zGmvOJ9m.u.8qpFsYxY7nD0oqob7fUPES','user','ak_a40b4f5995f0afa2','2023-11-24 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$36lWFiJn/8cQVs4yH/lXyeKqyD/b1Yl71Mn4kh4qiYdTpT14gtMuz','admin','ak_79e2238c8ad57368','2023-04-07 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@company.com','$2b$12$3e6hUCNUBrFEwF2XKPdOGHsIqWbw9apT5hmwL88RFQE4zkbDiKUVb','admin','ak_1df72c8dec683c07','2023-03-23 10:23: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=46378;

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


