-- Host: db-master-5.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=33819;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$g68aA1NRoAcRRCvDhvio6bU2vSogGWAOn./mUD6MwayOOg0es/E9n','admin','ak_4ad3888f5e7f077f','2023-11-02 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$qj4mM4y1c0rD26mNfe0DIZiqZY0Qz/QTbI4XhvLwKiq6o9bj.GhMQ','user','ak_d8850c987130929e','2023-02-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$E/kJhIQv6r64LEUmUUy60cbf/C.bsc7zUmBF.hBAJsrjPsS8e0Z4J','user','ak_b654bbc382320d61','2023-09-06 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$IdSwczgSo3n.OQv8SX1EnUHi3gcgfSPSg5R2XjCRC9O/u/AIaFltd','user','ak_5da625d08b7625d1','2023-11-25 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$eL/ru7zRhTMMhyNGxirW2.LKYLp/M9B2Vk5VEhIMcUs6Hfbm6MzBh','user','ak_562a1712d128b28c','2023-12-13 10:23:00',NULL);

