-- Host: db-master-9.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=4428;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$rvJjCf4jnB8JkJSxwmwZ1QFBgofMCQjE7LIMH729g47ofSVKL.GtP','user','ak_00a43497a4616f6a','2023-06-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$UvJPnqv87wN.DGQn5UNPjVpV.e5RdkFd2QlfahNm93Qojw1gN4lKl','user','ak_f992a9f00baf0660','2023-11-22 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$K7jGe1RE8yE7KMqPXbrFqWUeXQp1jdd/Y8DtsAlz9EkpbZwWf8Xaa','user','ak_c084abd5473dbcfa','2023-11-27 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$i9SWDa5spKshZcJb8po.N5kTUEx9Vtrv3SXYK0PlqPxc5.V1kGEgP','user','ak_a912b5d277f6b546','2023-08-11 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$rMjGSuNWwInRnm9jNl8l3FncO7s9xUs3zvib2N/kqz/KRQ12AENQf','user','ak_fdb086fab6114edd','2023-11-08 10:00:00',NULL);

