-- Host: db-master-3.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=16127;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$sbsl.S4yUOR1SxRlgmic9uRVuvcK9L/oepr2keJUjvlEqKNnz0C/w','admin','ak_9fe0ebd86ab2ad04','2023-05-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$5HnHRyWCz6Z7ADUF6Gp9lhvwmfpb7A8b/m5Xb7llEz0.FM0W6Q9cp','admin','ak_5c0befda0f9ee127','2023-10-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$3AJQVaP3TQqk7mLwKjDv5bgmemHfo/josjrss5i3QM.TMXnor2Dbk','admin','ak_19c7436989ed803d','2023-12-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$TcsaIvErVI5kiKGnte/PrKuo4MguosI1oVHy6IdhgNaplsZzxo69z','user','ak_13a149a42cbcd88f','2023-11-04 10:05:00',NULL);

