-- Host: db-master-6.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=17838;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$CGXhcKPrhRfYDDeJC48GcvS.IPQdrVjgjfrXcrfDYia07.u5B25DM','user','ak_09c364b7c6d598b8','2023-08-27 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$iC3IPtaFxUrB.XHEp0fdgHgrYesg4RaxGbykJdXB7dAEf2ZEmS.fo','user','ak_8c4c38f8c6511b22','2023-01-03 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$sWIYMhc1WqhYLaeOKTKb196T3cfFR0qUiA7wBxjY9Z.GTOQ85hTx7','user','ak_1c8c2ee729c0e3e7','2023-05-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$eVyRRyhDbWo7mi3lwDYhdhPfRpKTzCGo5AoA.nZ1BjLWb8r/7RTw.','user','ak_983f6558ca107871','2023-08-06 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$QgLgQT.crb4hz2pUQE/nyo/JIhTiUtX4PnM3rxYH12mIC0PMaQfjp','user','ak_fd7b793552fae30e','2023-03-19 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$B.hrmEokfMGGRIjcdkrSs1WSulwijq6nvpvLUdMUXniMN4itB1c3D','user','ak_74407e287428ebfa','2023-10-09 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@company.com','$2b$12$BVx/nL.D9Mw240VZMBVnk8stfcz00qvETpm/qvUQ1JQ19b0ieTufX','user','ak_663e48fe12459245','2023-10-11 10:21:00',NULL);

