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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=47446;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$WvNEe3Q.azU1fpifswKXEnby6dlm02npI5Ogg5WPzsvCIlUGOidfk','user','ak_2a6db2ca0cbdfa9a','2023-08-18 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$ZV7zAiXtbePpbm/PCLYjvzmGM7Of/x20pt9dl8WYyN1qAlQiLJjVA','user','ak_11a96d9cf0531d4a','2023-12-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$d6G2SktmLS4ILDZolJG/C184xHyzLSzzOEk44eicjrd8QRX4SQY70','user','ak_575c4b3e2ebff639','2023-04-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$nWh8a7dxfRla.HY3dxpm5RH5bsKbBvCjnxI6R6BKaGOSQEUEmQheB','user','ak_3667665a00554377','2023-11-07 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$MLcXp/yPYbSCikrU5aI6dUvpZ6HMehJP93zYmfXmTIltL4V9Dg.5o','user','ak_6b3c9f988d1356b8','2023-07-04 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$iFTkoyX/VYof1eXbJ7hylUVLJGHEEnz2EVWTwXI3jmyeLoSYBt2In','admin','ak_354a5778311f47c9','2023-06-01 10:00: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=33185;

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


