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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$cUtAavRCBhgZGu.UV5HcR7/XG2gLh1o74tHugAcCiR5yB8LitquYR','user','ak_b290dcaabc9013eb','2023-02-19 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$CW0OAAdvJQJGifl9PRhW9GahidMtYHPoExiXPLBTgOS8BLWR4MH.s','admin','ak_a31e12e6ba096d60','2023-01-27 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$bw/KVEpACBeXYQerCjK8OdW2u0RMo0Hka9XRBd8StNy24ZroPWJBc','user','ak_4a3d7a2078ff279f','2023-10-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$bXzE7n.gL36pkrR2G4lLTrweVu6jXqgGFjqGMvzGA1V19N/p27ZA8','user','ak_52620e72ce7e673a','2023-03-28 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$OSIRa.TF3Ik8KJQSTE3SLd4.UqVCfCgq2uWVnxxAQCLbc/zWNY4A5','user','ak_4cb881bea08dcc63','2023-08-17 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$gjoy1aUQqEOYuCurQgFH.bQ6VmwQnfBFuOTHmbLYgEUyXo8UHbq02','user','ak_ae7662ec2652deb1','2023-12-05 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$2BIdaamaaP.Xxr3KthhR2fQc/PsONQvZOvr9LUM0cjd4vy/FoqIVz','user','ak_29e437656c41114c','2023-08-18 10:09: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=8925;

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


