-- Host: db-master-1.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=2788;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Yp55S/.v0vylw81gJDevCuKUkxRfpgvIo3aJ3j2GZMrg6LyMXmakk','user','ak_2005f3a2f26028f7','2023-04-22 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$ms.w4XP2uWsTlvR46FDiZz3Wc3mtu1gYTiVwY1oHMqSVKu0q3uUhl','user','ak_fef78e70ee090a93','2023-05-17 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$quu/nwIfpa3hmRPJukAjgzWQQdAo93qVOJjz3V7jrgF.oIYpVYHwS','user','ak_11542d35a019ca1f','2023-03-07 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$UpRPnfKgtxjeGEIFoDifMiizer.NC/emRNE8Osxwf/92JivdfWSuq','admin','ak_b1f78f484f636a4e','2023-08-15 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$n0fodSj4TbkUsA3iogxjw/8RMPefO27eA7LIdcZoy22Ryy/19nZA9','user','ak_fee8bbc900147fc7','2023-02-17 10:07:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=24281;

--
-- Dumping data for table `sessions`
--


