-- Host: db-master-6.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=35383;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$DBhrxsgYoXN1gbixYyJiqnQlh8dbxTfn90pviyBHIBHsoU7Q2mQF8','user','ak_7bbc436f31de0d7c','2023-05-14 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$/qFv/Sggvr3BGRSLI8KkzONN3WWv11g/394IEGSYeLmjNdoVHsCMF','user','ak_d3b7c68b4a59aece','2023-03-20 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$ctOiRNxeAszJLcZ/hOJKsbFzjNqSIAWRLkQH2kcY3zo5/0l1ibN.o','admin','ak_e1b1a5583a920cef','2023-06-18 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$8C9wsot6ZX/eNU8JdpTgfg8TJsofMo5dlm4xXxzjBB.UxutbzoDBx','user','ak_1de69b39e5cdc6f4','2023-05-21 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$BKlArOSm9L92/i2MZnubU8JD8meC8GT9ohEqfzKNJ2FcEXewC8qlB','user','ak_205b5d9aefbf9668','2023-07-09 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$8jpEfV3QWXSJgbMJNiND7xUtENNZFxAhBiipfgAXgokAB6u.gQDVG','admin','ak_40c68e80203f8183','2023-05-03 10:20: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=39122;

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


