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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$UUhLYJcC8mBIVdFhAjWM4Dx3AkhT9Vby6X4Og4DYTdPK9OejguuCN','user','ak_95704897fdb43d4f','2023-01-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$NAN6aUo/6anDCTZiXSSsRtGgvqF71abFz18E9yRW7/EEt9jpyxbk0','user','ak_97bfcb762e0ea03a','2023-01-10 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$ob8lJKj7/FuTsNqo3G6iBTZhrbSoaIBylpd0AgN94VoLMTod0X8PC','user','ak_328e60721f66a045','2023-05-21 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$M84tCloyJ9hA4pR5R39OZsRN.VWmcvFvjz147KxK0nnFgQHrRIGR0','user','ak_00bbd02bd2c10bd1','2023-03-16 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$bXs6U6971uRJuJedOymZH0AwDUtFLGB0Hh9hmQvXvMoadqf/eEKf5','admin','ak_9eeaafd3014f0b40','2023-11-10 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$MkVeXc//8Pq4JnypeoTKhbsFiBrIq1Rqq5.AE6j6rA5Vk9qzn.PKO','user','ak_450715d3fa5bd231','2023-04-27 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$4U2FCqlQgbUeywhIRbwkKRKzQUMNo9kbAxlyK4vgBYA.hXeo.FG37','admin','ak_a9e72b2675900ce0','2023-10-03 10:21:00',NULL);

