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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$iRN/sN1VA4adVTJhXODEIH37xHDJGOnQuDzqi5YFLHf4bw2xiKhGm','admin','ak_8cce33136977277a','2023-04-07 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$WSOwW/sPohQ1UaTEee2GhcNnb7nKjORZIH/uNnGda.QJH4WiswaBp','admin','ak_b9b2b73303531a04','2023-07-17 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$p4sa0mIslqHDKyEHuUh8utvwYvO4LtBTHZpCo1Y7uAJ8JHNuFoC4r','user','ak_cd654fa18f2ef655','2023-02-02 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$kMN4BYJ9vEHwqOgv5Oz.mvKf4C76PpUK8RZP7NwbNxHB8yKhTnjW5','admin','ak_59bdb0c0cd887fc8','2023-04-25 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$nTkXhrbVhpwpC5HZCphaDlmnNugHPTLsXQp5VEoSa72dqaqoAcLb6','admin','ak_dff3637151db3810','2023-04-26 10:13:00',NULL);

