-- Host: db-master-8.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=29123;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$DbNPeSdevDWvYmjHjS7umPGLQ8Cg.V/kbJIvn3UkKRsI9ZfmARtnh','user','ak_a6e057b92aa62dae','2023-09-24 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$2WJgre5cTjM1yOYlwKFLyNTUpywGIQD2NuiBVJCYDq5SxtnmwV2xI','user','ak_9153b60361870315','2023-11-11 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$dQ9gf11niv4Aw3A4P1lm1uuq8ZrdhiJSFDjSAU7v0.2lCnZ4Y4692','user','ak_76e8b3c7320e78fd','2023-07-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$c.NVhBm/zr3ZfFst2TpM9phFed5Gy0WEPMs0W4/ZoFYsnccpt3R/I','user','ak_5e801a7ddf5b0501','2023-11-23 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$ed/jwQGjwqzlfzUD5Q6sZxH/M0JQGp8a6VeYZN031vMoiV9asstIk','user','ak_8d7ed36b21b3f916','2023-08-02 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$TgkL7X1vGKX3KW22pLBaZdfmVAfzzcvJQYlbCWBfxNP8VkZcCKtDU','admin','ak_b4b1d413ed2aacaf','2023-09-11 10:05: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=9384;

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


