-- Host: db-master-8.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=28170;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$KPKvL6f.ofVbYM8AtifhLeywwHQXob2SmPkCRyrXr9HWruir63kH6','user','ak_3514c3051c0a72b0','2023-01-12 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$V1SsSY3A9BUY.3c0.3rR.bB0loWGgHuAKb2t5wDis.UfVwiiCNfm8','user','ak_e9ffa3cb8e0c97b0','2023-06-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$bnPXBhcsNh0uggXcriuximfL9eXsTx.WpjSYAWxr08gq2nJUuo/8t','user','ak_868faa5702bb48bb','2023-03-13 10:17:00',NULL);

