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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$QYaYMpxiYzXg2icVdJfhE35DWywAI/Q8hn6qp13LE/AOMnK1wfrFl','user','ak_155e6a09c71b9573','2023-12-23 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$NVTP..Jmd4j2a/PACNx7rGb/RUEQchAVIlWbBKuCxpiXuSSwXDE9/','user','ak_ffb696722c98ad55','2023-01-14 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$MiFL84pAJHsOGRvSDmkEZEeeqVomC/odcQwv1JHJiOkzUvPNPjI.u','admin','ak_55a4b57ae63b318e','2023-06-18 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$LF1cMReccugUJsBNxu3oanzZp0mCQ65rk1h7doK6Vdq8mmFQyS5TE','admin','ak_047605a916c74489','2023-12-16 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$zV412MvkvXBtoWtLW7tgG19flx9vMuryZUqHtXH9kq8bFNly5lb.M','user','ak_ac932c983afbf782','2023-08-06 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$JY28M.wIC8t5H2QPHNfUN/g6flW1.dT9fVTumBfwniGT.YSTcIxdq','user','ak_9d326fe409bbb4ad','2023-08-24 10:04:00',NULL);

