-- Host: db-master-3.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=21795;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$kWF60qBbQojOqEm6/6LM1PMwcVSIZ.DgByUVAf6A6.AwDFJo4eWBf','user','ak_f9b4fee5bf2b707a','2023-06-19 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$bVIbiqSHnzTtiYavIyf34rCwutjs5tnqrkTG8cPcmaytM4hvZwqbe','user','ak_c1688322d746de4e','2023-09-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$CHbNpSfgQR0FFxYtOF7/z6J8uM67C6LjqivhI5.IQdmLy/FH1tPoZ','user','ak_9910a68a62e3e6dc','2023-05-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$6Fl3dUTJWDQIVbC0EcE4nrdPWj6o85Wxy39jTsIGqQLM1ImzLz8R/','user','ak_f175237b6bdacc29','2023-06-01 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$Eqq2Mw2VpaPiNrTXAMbDWUcWDMie3HdofcmIWJ56WHXAPtVTwFGKs','user','ak_a0a72e9b40cc9fab','2023-06-16 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=33997;

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


