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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$ewnnO8LcuraE6k4AqJ/FE86ovxlO0tc4kQXQl6GcyQ9xbSv/DbT5z','user','ak_24693c51137fa18a','2023-11-14 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$JdS7zEM16MQx8Le3bSqawyxg5aIR5fgYlk8sYZw71Zuevbcbb1Mup','user','ak_996077289392696e','2023-03-07 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$zf/jXcTzDWIXjiiRWTvlmhrbr87IfCguEKU85LsUc5H1KAJHxKliy','user','ak_4ba1b7756cc19af3','2023-03-12 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$dq6ftfD/oC2lAuYLSwR6YzcPMv3WmVwOSHgsWNCdmt.fZvhb4/Y/z','user','ak_c5f8d4e22a2361ec','2023-02-09 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$72LnblMpSm0U7NwI9hmXrMQbnBxuW7unRxP2.3Sftl0R9mUvyu3A8','user','ak_995849146cf37446','2023-11-07 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$LX4YJSpdKavksiaRDPVrMmoZfUItxnkbJwZ56F6iXOIxq7kAWQSBZ','admin','ak_58b3a5cb464b759f','2023-02-27 10:02: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=28986;

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

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


