-- Host: db-master-5.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$2x1ld8IwksLNwmYH7LRZ6D.dRCNBge7IBO9a7AEi2aXYF4zkV3fq0','user','ak_7347e0224c0d010f','2023-09-08 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$.dkxiQMFg8UZq9DIo0V0x96jT5LOXyxgTHgvXl02q3psEk/Z8.4lY','admin','ak_7049df689d05f65b','2023-07-08 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$FMXMhxeqOfbyzJwgVxK9SuVu73bifX7C.FMbdCSVvqbKzoECa.EF/','user','ak_11749c2b99bc8ccd','2023-02-08 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$eqOMN8cCnMNF0bg/LvQHkDE0ynNXCkWGQz0QBn4A6CK5R/1JYHsz9','user','ak_485355f4e1049791','2023-10-03 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$9IgFGVnwVNsewtIdVPbjWdp3u2GBR6.klt.RdEl1wBW1BWMlMYzXA','user','ak_8d7316b0c1c88586','2023-10-28 10:21:00',NULL);

