-- Host: db-master-1.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=26362;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$K7Hlu5c7u4D8LdLnDLCHgAwWGCKUdANTDFISVe7M12ssMezKSPagt','admin','ak_5b26760451bffba8','2023-02-21 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$pK77HKr7i534WDKpkHz4DcxVe2Gn0dCLXYMs0V.ac7vTkKy9x.Wuc','user','ak_44f76fe4e43516d0','2023-10-23 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$55uCdlkezzIEzG5bd3wdZ3dHreLgecJlLYebG2YoZ1.RkO9uM96Vl','admin','ak_160770d57c44492e','2023-04-25 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$kFSVaT5xMtrfyZeXrX0.TYAAqpVSGnewothb0lIT1MbcYMRJEkeuI','admin','ak_c4a00f36bb27daa7','2023-05-01 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$bFqV6QBpQ9CrMnOvnrDcu5q8iqD2aUIffgkOLN1pZpQD9YUOn2QRi','user','ak_391b41a75215c0d7','2023-01-05 10:04:00',NULL);

