-- Host: db-master-2.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=25464;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$vzHPhbI.QwVReyK18Db8XU0mJ/E.YvUJFGHBHgSWwN1gTaMBoesZh','user','ak_07e6d376a95dbb10','2023-06-06 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$HFTrVYUBHQaWwmJLuAaFzaYnkl9.GQASkGCxFis1gtXI5wUclf923','admin','ak_4cc675b5df90f687','2023-11-23 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$dCfr0APIH2PsNjSB9Hkutpx56d8uMw43KiIgwbTLebSf/Pgt/WM/D','user','ak_93a8149e4bd2123c','2023-01-26 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$35ipV2Hsjq5LzPhDIFS/Oej5InuvDbR3dSfLLb0LmDNLFXwgwVPTe','user','ak_87e6d6671c1f53a3','2023-11-11 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$GEG/Dy7AIxRpIFuym1bRLesEraLW4zQY2BJfbc7GtgxxKjN63Md2u','admin','ak_d5d34c774b2dcd76','2023-08-14 10:14:00',NULL);

