-- Host: db-master-2.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=5469;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$MMZ0XWtb2lM2EDaJSfTzvfdhG9sK4Sr7BxjeIL9VawV7ByiNtXrnn','user','ak_14308f3d73d37c66','2023-06-13 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$OlkU5vKi8JtQwDy1aOVCEGQtE7UyLBgb4rV1ZtXjadh7iXh.DX6Wt','user','ak_699de438d4eae8b5','2023-01-14 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$cMLATRrSTjjLCX.tz.EgsOZB06ibGH5erMgL33i9JtFTZyjVKgjBl','user','ak_80e21ff632777ba1','2023-01-18 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$hrYf5OEIzQ3IKm4Eu/8xN2pQyzTHDMx3oc6j6K3/TgiKRKXufwpgt','user','ak_207288509e16496b','2023-12-02 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$F4hQ/AnBmWlS61eRuBW928asptF.ZUpQTnUs5BaLrhAaaDQtI3sNo','user','ak_e0e2bf12e51eeb8c','2023-08-22 10:13: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=5642;

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


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

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


