-- Host: db-master-8.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$Hw8XoNF8kCkDu7u3XyDW3zSFhUx2Dg/MKeRCCQqDGu65OL/77Ngvc','admin','ak_4a3fd1967f744109','2023-10-21 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$eWdQqdixoeKUNl1Z5d4ZhUnsFmR2CX/FiUttC6YNmq/LpsTM/WSX3','admin','ak_123ddf8291f21589','2023-05-22 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$KtYnVSGy4WoOb9IRAXhGrXwDcKZi5uCCoT3K9C2RwSRtlXShYnie1','admin','ak_54f1b63ab0c123c6','2023-11-14 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$sOjENWd6DP0Agfs.1e3kwJLLUmRht8mho8x6ozqsbUVLLzR0rYE.W','user','ak_aea9a76b31f01dea','2023-10-27 10:12:00',NULL);

