-- Host: db-master-2.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$tbyVqWA5VkkDVuaIHUziYfMNyEBlvuMr2Ui0V3ZCkUM2yRPvIaYO8','admin','ak_0441366880e51657','2023-04-08 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$C.8PTyxXiitEgCvOkLXmG5Ui06zXSYKw.o.yRga48OETNkaDitdd/','user','ak_4c22273f3bd85dd4','2023-07-13 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$50Bl89RgRt8quvWj720.1DbW5ygrjr26m./d/ZAwRJCvVb95xV6VO','admin','ak_31405c48e3abdfec','2023-06-08 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$4XtbBwGBUrTo/XNHL/LLPi/VqxVceH.kreyj.peqfSkXKNpRrANug','admin','ak_770e9ef5e0cc1cde','2023-08-21 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$OeOaaUj.DRXCZOLGc4a8.TrEzn19T/a4Qyk819XBBtv5Qg4tQWqp4','admin','ak_2d595de5885a5620','2023-08-10 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$X4NzvX9Hklg0TEcO1gjDNx5d9NpY78NTg93rNkmECi9viZMUdWmug','user','ak_aad559d97dbbbe08','2023-04-22 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@company.com','$2b$12$lU1WcehMarHdXIt1.dStwQzTTmwGTjH5DObauMKWaf70t9QUNAEWS','admin','ak_a3d2443b341b54c9','2023-11-14 10:09: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=2081;

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


