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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$FjozAC2OWPGUuTM7PTcWBwa1vdUk/O2rmLMu8ZkQF3RQ4HcxoG7bK','user','ak_5a22f0984ceae4b6','2023-09-20 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$CndSbITqxA7EcBkPUSBnxVexQBe/Z0VWpGs1hUJ1Iesv6rVY.wh9t','user','ak_4a9a45aec67db0ca','2023-10-28 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$XeCqcAeGIdLCrb69itzvz18r075jQjMak3kz7yjctw.SdeQbJAdtu','user','ak_903702c33c168748','2023-04-17 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$lcy1fQkCqdq44Z0DQXEYNbuwdeL5YmzWibkU.87r46a7MzaUSAC3f','user','ak_7f2bcb1f5f24095c','2023-10-05 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$Gk3fHAD8L2XfWbWx9mQLHJzaeZhwc3zmPA5Sf4OagCL5HKV/L/Ll3','admin','ak_d961abd70336e8f0','2023-09-20 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$e/lixRzKbFcM1jX1JWqPIvIq00mQyhBaYlDZXVgJc6Me9zltPAeLQ','user','ak_df4f8ea17c86345d','2023-05-11 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$bPOsDT65vUa.ik56RxASlKn93lxpYOeNF3tQLSLQvR7EHf8Ptm/1X','admin','ak_56c653232372f9ec','2023-11-21 10:08: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=7550;

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


