-- Host: db-master-6.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=6279;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$duU6A4lL3cROvbUztmsL3fOGq/24XGzSGR8ct19wnabaiUCMY9aG0','admin','ak_f4b4bb510d14480a','2023-06-08 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$yGrBCc0C6EtidxAWtX/0T5dS8cvmKkp50U0WfgtUIBd6IZfbOlpPO','user','ak_eca69aece9d2f2e0','2023-01-26 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$oLN1dySKGgG.s6CjlfR24yAiuwotypLnE8HF6MpeGZCufP7bWnB6.','user','ak_bc72a1e4119893c5','2023-12-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$MU4KXNoI5BJycx/OjWFIX.dJPTbZ99V8JDsKqo/xg2ay4BKdnQRRx','user','ak_1ff01de4a446474f','2023-10-02 10:06:00',NULL);

