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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$rFunI9pK7ET/0v.ledohXsyaf65nFrg4gcKHrBgbZ0tKDajgLbMro','user','ak_356242dd4a5c439a','2023-05-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$7XY5n2G/sjQMVddGn5I/CZcaY0AQF22oFeezNfC7OjFQV6zQrVM8b','admin','ak_a0fb0c042c1908a3','2023-10-12 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$6eTqrrH01N8t5PfcQBO4JGwdHE8.SOzoJIE0mYXroDaCSUQBiTK8f','user','ak_3b4e102b7655343a','2023-09-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$bsTu3JJz992SCjPyJ6n4ty2FYx4ILJr5vNMdT6OgvpmdU5QNuG7pI','admin','ak_f0d61cbad0158830','2023-11-05 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$jXMDGbYjwPR9yyHHRdaQ0fgFxnEd6oJvRJnLA5WhYidzOko5pByfP','user','ak_9a9885928c798fdc','2023-05-26 10:15: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=38284;

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


