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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$mPF7DCVcbmXDI3W50TPFSSuOoSzPqYq9xYPneGnig.SXY3nWaJsGs','user','ak_51069be39e416c47','2023-09-19 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$MXcOzO6nD98XTgffWilahTTZWUlx16.oKev2HuRJD6jILdbN9QuAo','user','ak_074e9b458c729ffd','2023-07-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$DZAKaEZIAVT7Z8w6jRKptVkuYN/ZdBIBgF26ZAn1ro4ENK.rRK8Uh','user','ak_7e4880a3e76641c4','2023-11-03 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$I7cZ21qWnE9ozNlL7YQif1Z/K8of8zC2iOomJXxmfD4wpcpzoj7BQ','user','ak_be4802e3db16b7f2','2023-05-04 10:13:00',NULL);

