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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$rmzzYgGdC3wUr6bH7RXQQ7JXCba9DAAq63ROyjLQ3vbJeSOeyWFcQ','admin','ak_c62ee1e4c952a34d','2023-10-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$qGCyyXQTpRkpQ5UWyXnGRiP56xpXqQhuev3CzpPbr3WQagcT37BIm','user','ak_6c466448169e65bd','2023-10-15 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$nenWrfpL3t/DyP/2IW8uYPmWvF6H/7RX9SEpd0IgSwg5ATg7JiL95','user','ak_32173789a46bc6cb','2023-09-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$qxj.w5EZiqrDEZVFBUH8v25NQrnNTfG5XrQwJYxTahswLsTZxL0AI','admin','ak_81aecd02fec154bd','2023-01-17 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$4s4vF9pDG0pnP9HEQLYF79zqDlItxoiQ6u0BEqJxEzmn7qcDMrgsX','user','ak_1a93df02931708ba','2023-10-01 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$cT/GZC33WuzUB/ckRnqUILbCr1B13EUA8ZBCepflAgV2th0MIKbXP','admin','ak_4078286fcd59d2a6','2023-10-16 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$XZdBFVs0J2aYm4YWVU0on.cntpOn6Ghyn/yUfa6zCSyJLLI7M3j2i','user','ak_21eb5ea2817bb1b4','2023-09-27 10:23: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=17270;

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


