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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$yy2lUux29jm7q0z/RAfoCu8kGVVM70go8c1z8wiuW9PSlY3f/aqee','user','ak_4027cf3cc446e577','2023-10-11 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$yq0Gv5LszjImVcikLETajk/r8rN2AYfQjM7V6BIE9Y4BGnyGe0H8u','admin','ak_f4a1af383f9bbb0b','2023-02-21 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$5e4f6MgNPvlJ9uJhv1OpTq00VVWoQ307RujukKjK3J.MarJC3lr0I','user','ak_f3d7bd4dffd6f017','2023-06-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Khdxnt92UhAmt3fielsC.ikAi5yKj9BFvRE3V64QhLr30Ks3pVCik','user','ak_71fd1a4a29d41b44','2023-05-15 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$.fzC9f6troGwCWRjBI0B4Mnc.BVB.NwC90XxoJVSj8krQKhCrYbCk','user','ak_ed939344d149f58e','2023-12-21 10:00: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=3487;

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


