-- Host: db-master-6.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=8290;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$V8tIoDK6jNSYAORxPZ3yJxcZHdUEVgIylPqLc0jnZi9IiFPzOAW6k','user','ak_3bb9f9dda892e34e','2023-03-02 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$1ClnAu7bq9aWJeTaZqtM/x0rKqRRjKb9p7kydZZUK92PhoCsAq65o','user','ak_4057c088d3293e87','2023-09-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$A7jOrmlf0PBkWWkzEBZUfwHNbTqkRPlWWR3bJbtk4bw/Bh.Il6Shx','user','ak_0273f8f98bdc3361','2023-08-03 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$vmwkaO0iXEni0PX5naHcxrBCR.u3BZYs8ArsZd8UUQydANr8hRCCK','user','ak_2861c5f92bf4a27c','2023-10-20 10:18:00',NULL);

