-- Host: db-master-0.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=32056;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$kF9X8uL//.g1xXXqWhGWY9qQ7leHduqX4TOP1wWmX6xYXXyKmeYHv','user','ak_155a8f4f87b6397e','2023-07-13 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$8vqJ9X.K5DUwmxMVBr3DEavYBTGJ6bWxfETvAhgLoCh9Zfa.r1MAV','user','ak_a27e01c3e40350d4','2023-11-18 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$Zl8.jOjcGLKV1it1Nughqd1Tbn8RI/WeGjXZzWE4l4cU5XEGi81/2','admin','ak_c39ba375eaa9709c','2023-05-08 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$quR.YifZMAAyZkRJ.QuBrquMwUF54PQ.QmPxHg5AuDWAl0W67.DPX','admin','ak_0abf154e4c6d8487','2023-03-09 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$ZlVeH5sflsa5kcOU2rKuu4Z8sfoJf32c4cpB1dEXLcHhvs84Akp.E','user','ak_93b256df5d6925f9','2023-09-23 10:15: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=48716;

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


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

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


