-- Host: db-master-5.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=27388;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$lddg5iCHckNWl7ORyU9CXSLqrduDYviyRPm8ysaziXkCINKUijXpa','admin','ak_be8e5f07cf32c9eb','2023-05-04 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$E.L3P3x2H4alHIs8sI9rWJo.xtbnQYQ8SMLwBCndn2xl79E2vL4xS','admin','ak_05814106af414afb','2023-01-15 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$jwPUukexMvWmZLfHjqqlcZY5s1BEGhHoz0tHxkMiHIXLw7eCOjaeS','user','ak_32d7ee217e9f2bb8','2023-09-01 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$o7o8.ZnUimlIIWiJdQOo1N3BbeD/5VcfYB4UM7tfsPcnSmSF7BaVh','user','ak_e019913be2ac7cde','2023-11-18 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$dCEzP9lPiEicgq4lxXuptZ0JDeD7ZRaMYifZOvzMMu.0gf6AIHb.T','user','ak_c032610c1841dd3b','2023-11-17 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$y7.52A1eJRpNBCZxZcR/I24LyY0n11UIoGAOiVaZw9Q6xWvXF25Nt','admin','ak_709db7b5328581f8','2023-11-18 10:01:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=42590;

--
-- Dumping data for table `products`
--


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

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


