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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$aVGuAsnNZ/LIuIJosp5OHxaLvNFAl9sibantwYKPG2osnLH39yN2I','user','ak_e1ddd1006ea040dd','2023-01-14 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$8lC7DOPBG2/tOWKItxBTETgbbSIck3SLxAqDVQwf4LLa1B/p2K2y0','user','ak_706892e1005f1e80','2023-05-25 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$epEOZSLWsKLCZ0WCqrSDdrqtDg8jt4CO.MJDIle6dUUqcf5XL.NMp','admin','ak_c9e6948e5987a829','2023-02-08 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$EP6QVql3K.59rU8djK1DoOy9srr4gFflicz3ZPagOqy7MNs96fd26','user','ak_50d0650bc64c0962','2023-09-22 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$89O79ruWGmI3cCm3ne4kmoFPFvVdnIRGkXphqJrbD2VLQERfEMZ7j','user','ak_6f7526ecd7d9d025','2023-04-25 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$kLKRmz8Z3WpuDu79JdfExhB0hq7XK5Syu5NmEMPS0KKnvzphkao5z','user','ak_8db3251c896c16a0','2023-01-28 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$Nk.4wbpnqNlWMtzcTq5FQyTP.fX8mAVcq6D3dJEQH2KCRd2HEpwq2','admin','ak_7df50a584ade70e4','2023-07-15 10:03: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=29639;

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


