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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$I52xkDJvNr/cFG.TgvCT99blBFygdaJbwSvF5oH/LO9YbsKa1kvfD','admin','ak_bd57dd9a2681711d','2023-10-07 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Q68Ub8SWQgMe6spBQwcDYU4/PW1Wh9BKQzJl2hx3hiKYBbIpn83ej','user','ak_419d7947e915bcfc','2023-10-05 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Yc1zBzgNuNlPEO81//4uO2BdF.Ehx4JJc4WzbLsaUHaPQW3lRQibH','admin','ak_5bbeb35272fe09e7','2023-09-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$rPpVa1es7A4QTzpcS6UdFe5H19Zpv/fCsaM.S4WmBPL15jgf2aMvD','user','ak_e16f98c4a2df59f7','2023-03-03 10:12:00',NULL);

