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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$KfVsgOVJyrWGs4pEuw5/c83hQ4h2/tSBMstmyuT3OBxGA5hPHg8RH','user','ak_1e91cfd19ba9d1da','2023-11-23 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$xl3jOwSTN2t48ELfYUHSau9X93xkWyocgfej8DEE8HX5r26uJR3Gu','user','ak_109b04a67fe2657f','2023-09-17 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$2MSwdC9I8PBH0am.Z5ag2dMtzpwqhokACVmEDKGR0aa5cZRTpHm5h','admin','ak_7e99d7fa210bc98d','2023-10-12 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$3vEHHdwCVev6anbk5RQ5B7BYGBCiMpULhycaChv1YNLFl8lxBcjoj','admin','ak_f5644c29b36a4198','2023-12-11 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$onHxPFH0LWAuLC748QfNmT8S0ZE9buTXqdYJXXxhAvgEgDES2TN/.','admin','ak_0d89ddc1d782cfef','2023-05-06 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$jsmp96IHwGQsvkck28MqUEbG7990oLXw3ZDnFjQkXnJNhI/PUSTQR','admin','ak_4eb02d50c2668541','2023-11-12 10:19:00',NULL);

