-- Host: db-master-0.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=29820;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$CSh9G8SuRxNkfh3Qs3JhkMBRIUVVE5JkpWfd2UhjqasQsOgCsEj0S','admin','ak_b423ae9358be1685','2023-06-17 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$GCsJ9TIGeG1EVMsecTwLIlVHO408xLKFW6H3uTb6DiGaVqC.obOqQ','user','ak_e2b2fce59cd686eb','2023-04-17 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$HKKsFN6UNDJFnFrG7s8KVDS9R59BRMhrNEkb4Yf70AKQ7YLtGx7LF','admin','ak_4aaf9e7f7c500d2d','2023-11-02 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$4jOSIFcfE9yDM5djbRfHxLzkCBQn5XnpKxB73rUUwNU/XnW5kNcyw','user','ak_9686f1bb20c5a430','2023-10-21 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$PiCx52W6U5OGzxu3J5OCjGrWyfCgttbu56za3hd4nfxK6WORy228j','admin','ak_6145cbcb5b825f31','2023-06-20 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$qIFuql9U0Q7n7BlDR5i6ZfjKIHSn1Cxz1foew/gC6gvLG3qhDwFU5','user','ak_4847d4e4062252fe','2023-08-16 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'admin@corp.net','$2b$12$Ymdlo0MWcadvzujTz7afW9WOWqkvD/Jme3yAYBO/RF91PBETssGH.','admin','ak_613c8af6a9880f64','2023-01-08 10:12: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=25473;

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

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


