-- Host: db-master-0.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$N.66VEtYoqz2H6.ovQaGqFIXR6BwA4VCZ69Kv00VcJiWYfyJ6SrAT','admin','ak_3b16bde261fc66f1','2023-05-26 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$F.upVMjizF9bDzJxNUCXFt1Wv3.sDkzhn3I2c.h9taMpCaATu6mux','user','ak_55ac17c78ffbbfdf','2023-05-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$1wCQxpbbsCaMU2dYGbPvp0OELRR2vsJVb8bFJPd42wHfaKiPtfsoj','user','ak_5f135be960a892e6','2023-12-09 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$DAt9otbmYiCvpe0LT2Un23/DbRpdZwkBNcw45dJ.wBAtUHwpH3zez','user','ak_844a8063650787c6','2023-11-16 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$Is1QEKR0Y4lKYyVU0c7Pn2D43qOo84aB0iJN4gqaac9AmAup/0c8b','admin','ak_9fa41cc76b58d7d6','2023-02-17 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$jqUEykHCZYg8rvEeWsnfhIYLRpECSvQ/FtuuBovZOuenBK6NTJxcC','user','ak_a817b5fce891e211','2023-05-19 10:15:00',NULL);

