-- Host: db-master-5.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=28669;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$e7L2jf5HgsAQSB7Q0RdcsJryEXnmcccXVSSOaHly56Rlq0Km8OtXq','user','ak_8ff9e6c1a8d79474','2023-04-10 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$UTV5Xvs4Roa336UZ./hY/gjF73VVHWxoNpYSvVA9J47xDYkLvpbiq','admin','ak_530c06bce0c13ba1','2023-11-08 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$n3bSLu81CYsmEQvd.hfokthAGwdpfXExzz8CLKA4r..yeRSsa1eLK','admin','ak_249f180a680787c0','2023-10-21 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$6.Wn1vsdRcgcNI5Ki4cxdhbBx4nBckvTySjie9u/YgcZmg.0NxPEI','user','ak_5b61e966ff7cd0f3','2023-11-02 10:16:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=25553;

--
-- Dumping data for table `sessions`
--


