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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$yfflyxA/unusVy3N89OmFBX5DGW5flujRoDDpUZfV/5/HH1vvxtNp','admin','ak_3f7329f0d7e5d245','2023-05-20 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$aQw27qL3WeMi77tsNTRyoX0DATiW0Fwkm.cV.P3ihn7IcV0drqE0x','user','ak_f4bef76cc8493136','2023-10-01 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$3I16oyqyHbY8Em.WBlN0DIxv3eE.HEfmdD5nNHmoVVKwc3G3JF6pl','user','ak_50731a3d5aab1795','2023-02-19 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$ZWhNDaDhPt.j42Vc6/XKC3X.NOYP4jcsgRWqSAIZesto1b46c/.os','admin','ak_d257a39b4c91f597','2023-03-08 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$XXYtO6f44yyJwSGBi7vmcg2D2AUZHcWNN04QW4S2W5dg4XPKMSkM6','user','ak_38c128526294503b','2023-10-26 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$YlKTYcm07BI26jLsPFw0wP40X9rycqjRqc2xTuoCIfMmezs96YQb3','admin','ak_30d33f260e855640','2023-09-04 10:16:00',NULL);

