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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$xWY8CylawWqSufuFsHz.LD8SSCLctxVILpchAq/43grBmrdk8uoQM','user','ak_7e04d3585bcf0fa5','2023-10-08 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Ad7wH3PxlCYGfYYWIcgw8TFQ1yxKKPrQlZCH4QoKDLbgMA4a78WZp','user','ak_e1830fedb4dae63c','2023-07-22 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$y4xzO77JwFEtC9IfYm.OUjmVjpVrZvie/aQsNLY4beJha24TUwSfc','user','ak_56aced4ef3811418','2023-05-03 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$8ssy22JHX0M3NlIKhm8nscizUWl0Fi87uKpRfyJ2Siq76es5p1Bf9','user','ak_00464c3e66fb5b84','2023-05-01 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Gzfv8LC/jKNtVRq8IKbJCgveKi5g4kYN5v72v8odBdofMNkllnwJK','admin','ak_e4a00cf99b581ab9','2023-05-03 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$RizYnLory3R79BQhOV.beXBPO8aJT22rUss2bXvQDLOaEPCJ3Hgvr','user','ak_5b8fc66d769036b8','2023-09-19 10:04:00',NULL);

