-- Host: db-master-0.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=32087;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$fPz2uhbiSa19anBS6Ko85wmKbio0hGqXw0C.xhe9h80/N5G4/A9j5','user','ak_8fd56df5dd6db5d1','2023-10-24 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$oYNlb4ZJa6su8mVbnobfQ1hwG/cN1kV3SuJ2R8RAix6z23I3GSUmu','user','ak_43a4e2fc873072a0','2023-11-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$ceV.QhpWo2Qns0qCmXOfQFahl8XbD/j8ZNmrk1xRxLYdL2.P1RNq1','user','ak_8bbd180595e203f0','2023-03-19 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$q9AtqrnLijn.UZUnZd20MUG0UmVHRf7O8Dt2Hop266ADPVYwv8GI4','user','ak_4f45aba89b663f3d','2023-01-10 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$h1jg6k91O46NV4hh8gXF9qslVjqvWAueoG88krpD4GKt4GvoQOUVI','admin','ak_08724c07ece6221c','2023-02-15 10:09: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=37296;

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


