-- Host: db-master-7.internal    Database: analytics


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=29434;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$.inTqm5FUR2kdNQGlb604kIxtvDdBcKALH5xtk0E1O/i5pgFMoSH3','user','ak_76542cd790d0c31d','2023-04-21 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$vv/0TDFOm5EiiA4niyqEwQ/RII4h1RV4PLbjaLzZimPlXypySXVvj','admin','ak_8a913c62c797de0e','2023-05-14 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$vnhdfqbbFiKIz6AY1Hh.Ulsu52RYg95Pa8ijliOpIfK12XlNVVRA9','admin','ak_61d13ee8ca5765ac','2023-07-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$vNewS.sdOd8lmHR/7ES5RnhaVq4j4WgLtzRETaGczOy1skqLJPqyI','admin','ak_8fb9c9b9475e45b7','2023-06-22 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$dNVWQi5L5RYn/mH6ihATa9yHaafoARHPHtRvy/LKAmVpMII/mGDKu','user','ak_b38724e112d48c15','2023-07-13 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$KyxRq9qAUFXjJlA9BIUxAY6gurGgbv4hW4N4zsHyCbmIhpoeLpBDu','user','ak_daebeaa0d4768821','2023-05-01 10:19: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=17710;

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


