-- Host: db-master-0.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=22623;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$WV1SfaU5FQX8O0cSprEbxCtjv/ts37yMdPLs4EG7yHQY8JWY2d764','admin','ak_0deff3b92ce4a4d7','2023-07-26 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$X/kCx1i8JHihm3Druxl7.NnS.12ns66TesjkJ4/subZ3DeHJC0jb/','admin','ak_2f37ee60ae6d99d9','2023-03-07 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$22s4QSGFLsCATyY0fXAyobn8cfeXattBM33GfNF3xWZodqa4gL53Y','admin','ak_84f2ae52f73882ba','2023-11-15 10:22:00',NULL);

