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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$dH0kRDbty1P1DYwqrvDXe8XCVtHoa5lZ37fp3vFWbkHkccjwlyjhj','user','ak_e70a7f8a1159589d','2023-05-08 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$xa2.HGuW7.sISQ8.X4QgT5D5UcViye.ZK4H17R8mmbf..JLvKVL8t','admin','ak_dc22924341078799','2023-08-21 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$./DpfS5fmNQKwb7RCWyHP2Gg0ViK8copsQptl9qQAD6FbIPKFxLtu','user','ak_63bc3372ee607acf','2023-04-20 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$uKcPTAjc8fIkBQSZEwm2aW4B57AYVf3ELoemfy7G8XTAyQfbkaEIW','user','ak_0e336ea6ce36660b','2023-11-14 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$m6Ro97mJAZV1Kctv13US92ZSkPeVHspfEFDDjhffJpL32bl.NFQbi','user','ak_6fa3c583be63156c','2023-04-25 10:14: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=4566;

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


