-- Host: db-master-8.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=43985;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$ZQ27dwZhTocTKR6be9W8EF87JQe.8E6JuLaGX5XXWTPmUsfA4/RIa','user','ak_c44091280d166e48','2023-04-14 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$u27Cn/JiFh0qh.hz0aMd1XqIZiu4l81z5m.XwhHQLKx5v5Hy59oAx','admin','ak_e88971f82abec6ec','2023-02-14 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$BD7AU14mhQKqVDExYyR6sc4eLU6Ty1mSJA3S20KK9VF4SLapr40Fu','user','ak_74a226d162c608bb','2023-09-18 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$b9W66sYUA7jnEXrmM.bRMc0E34elU8zY7Cwt3FWx73YolC73vpiaw','admin','ak_13047b7081e042b1','2023-05-23 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$Vu.oAdXrOfW3AViylqFPbvy6glst0piri9Qeje1V3JJ0un4PJkcG2','user','ak_136d816d88523fcb','2023-04-14 10:05: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=22542;

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


