-- Host: db-master-9.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Kxxik3vEKdzNtAx3IvuCvAC5WZiPiEo08YqMsPqM.6z7zPsuTFDI9','user','ak_81727b0edd5f7d61','2023-08-01 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$2L4GV.RshEYg47ixr6d62wvclfOlPrdf.DtCcK6O4BMDMc9lXweAx','user','ak_13eeaa2dc8fd7158','2023-07-16 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$XZpUtJkVgOLH2Q8hkJq7m4os.ZLaUaOqke4.FhlFAYliTFaGDIeYH','admin','ak_4344516d42a6c5a3','2023-05-20 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$4fj5Lmf71qQPNgifybJOj5jKzTfyHWYlvjplBeWkSopaNPSkjnhHs','user','ak_f08430ffbbee11ba','2023-08-13 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$yx/wpurALJHrnLw39UXTMp1XgU7uf.hNGpmhrVzNnkVthadznznY8','admin','ak_7c7527bb82da628d','2023-11-10 10:10:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


