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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$fwdy4ZQ/HPFGMZQ9Q7qkfbi8UfTR2cChRLQZ7hQEqvTqDE6M30xK9','user','ak_866fac252bc04cc9','2023-06-10 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$GSfiTWw1t0RL4EE7uMVfxI6hfAZgb8oFyPSXiE03RdwXQREzRmvkQ','user','ak_a5f607cb9b9d65de','2023-10-11 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$u2zkOY22EBVodnCvwwCY.DwLUC60/Og9ASTuWO2Un32pqEjgjxgdQ','user','ak_f38ebf0657f14aea','2023-11-22 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$bqDY2O3hItTGBIEuS7Z/SM084NjItGJLO7wXdHBuvtxjmyH4brs35','user','ak_7d5848e8b18bd70a','2023-10-11 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$JB53zcjymp43zdxxS6TRFwTnfIAaFzk5u4zjOp5iK9pB.c8cm1DA6','user','ak_e14b245bc6d5e34a','2023-12-09 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$oNQ.63Er5MK7OtJ20UMJlB.ozE8sHTfagF.Aef3FCzFDdlsK01RFD','user','ak_f4486462e41de3a3','2023-09-17 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$0XFQ50h5uSK5lrVtrmy.YyX3XtYj2VI6vkI/oSI4oSaO6aTBTfNbz','user','ak_7c0836383af4e30b','2023-03-24 10:04: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=2653;

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


