-- Host: db-master-0.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=5069;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$sPWedw6d6l44iP2wH9kywdpDylGj0g5qW2dI4B3ZZfEO.07Drh3Dp','user','ak_9fff261a8d1b9fc0','2023-07-21 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$6lV1b4CWxcdo1kJvIS6Fr.cT62ja5keXyWmG2Sjlg6OmflgAtGkUH','user','ak_ac4cce5e93b3ac14','2023-03-19 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$oAQANk6pfG/2aPZlLnNnGlYF3EZcRPoP3Pcm6SJGCMUGCx00uHkKg','admin','ak_daa05cde4cfe1e30','2023-12-20 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$Nux3XQULgKMVu2gw0meXMYbAk28NsvePW9.jaekjkGOmdKhcce3p5','admin','ak_5acba3d95787139e','2023-06-25 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$oK6w/jF0pvPDId4fHDW2r/D4FPozmv0vrIajz1Rk5S.wmYEv2qgna','user','ak_d58839c1d1765131','2023-10-14 10:08:00',NULL);

