-- Host: db-master-1.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$6JpPb8HyIkVq2GbbturaNKg7Ac4zsWSykHIBDvtqV/7ffAbs1cTJj','user','ak_54581f410876cfc3','2023-07-21 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$SiuwuLOcnGJbIa3iVSlWatpYns0zS2GrgshKu/x3JGXMta5wcbwTc','user','ak_4f32b6a5356723ae','2023-05-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$a7lqeY3SJLe4ZUIdgeH5JeD5IQQeY/ISPRTikjUELnndN1pLY2ZJg','user','ak_8038d253eb3feb07','2023-12-23 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$mcMdwez0ntduBr00Cc8TtuuIMuRqdD61raQi3zDdeC6eJiIqxbQyZ','user','ak_f9cf6daa95009ae8','2023-08-08 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$kweUpW0jbE2iLAOgZ5FM8ojldkKg1bbd0u8umkkP0ycfkUVrbnZ4T','user','ak_e1cd4bc0eee210de','2023-07-18 10:08:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


