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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$YboYDrmlSrS/6CDnGTSVPjKQdtuUHwspEYDc09czfPUkbHXahf4M5','user','ak_43f82cd30adef068','2023-06-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$14dpr4Bs28jylD.mVVvEXrQUjuZXsxSj30HednszEaErCN3Hf86v0','admin','ak_7618600666812d6a','2023-03-19 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$cUEZuUB8d6sHV4PhWJhPICrKbPvf9zI0LLrmtIRO5mocO8Lm.wypA','user','ak_dcec0b4a3488f714','2023-10-07 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$csGc6drptobgOExT3D4Te1vAbCv/Cw0OlkSOpmmCJLMHGkT1RxP3l','user','ak_0a0007ede5ab49da','2023-11-03 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$9V58h3VOH8e0TGx4DMsEMPfmNyAYDgqni0VQ7TrMTc2xYNUV02vv5','user','ak_71215d7cf688696b','2023-07-10 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$c8yTHAIxWCvvPGUFokzDCG6mjSGvwO1tx7nX2wIkQdjKhixDfQHfF','user','ak_868050a999fc7f0e','2023-11-22 10:08: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=45104;

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


