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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$/Uo1idqIQ4E9c7ilBIqICi5neoT.9H9mkNwd/L0xhZlTiS8knEU96','admin','ak_cd4e342619134cf2','2023-03-22 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$g33E4kyKfrFM0oHzUx63J1Njp9BJgjqOcwxFiYb4WHa47xER0ark2','user','ak_3d29543353dbd195','2023-06-25 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$lf1ktlCUTFgGnHjgYy/5AO2ZQYlhGVUxMILzRSMaoZmuTVd72lvlc','user','ak_9b9cdbaf7ae90dad','2023-02-22 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$bW8QEUl7bKMQxiZGSUzpb.EvtASv0YHSmrGhNPmje7JlDweud5EbN','admin','ak_dbed4e3427b50c3b','2023-01-24 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$vq.KxBwEBabko68zmqM0cxlIi4reLfkxCVjE/rcr0L.x4xYGnzHNf','user','ak_b5125f9a0e583c7c','2023-08-21 10:00:00',NULL);

