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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$qP7SdmObFMuvjEurryoIFT4k8A7DIFyLRxRh9tvSZqfPRGiTFf0QC','user','ak_e826ad91b46dbbec','2023-03-26 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$PFnLSUvfOWy9bT4SbggajnLUpIp0qrnSmcpF8NnB9SvfVqMKrT3ag','user','ak_b8924b44980b10af','2023-01-08 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$7FqWK2iXR5LynZt0JtJQqrvbJeeMOAynWNN0o0I5gjdRjmp7oRNpl','user','ak_2941b4daea90ac69','2023-11-08 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$SAQT8UH9hKDQ1XcFcLYkdrfjkYbtxAhXqgCpUnFzygbH6shtGbto.','admin','ak_51548c350522f385','2023-10-18 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$X9XRwu8i4kDEASwCV2xG0a3RM5tCi1Ruc1qDTGPorIGQClEqMyUxB','user','ak_2effe58af8eaf054','2023-12-03 10:11: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=42671;

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


