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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$1UvwdKDX9aahuHVs22mfoNiE39l0GEGdiZybZNTubRZrk6PmxtIi.','user','ak_12ce25e30ad46196','2023-05-23 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$zxpLurqQl9rNREsJZg9MAeNl8k/OHEhcP8nI4feJe5KpX8RP7Eb6Z','user','ak_d0d99bd375614cf4','2023-05-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$Elvlv1GSRSY4ZO62Lql9tEYalSOTSuX6QwEwtjqu6BLgF10As998G','user','ak_f557d03aa72dcf3f','2023-12-05 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$wMBkWU4RxTWCv9H5CP4NdgUj3L7TVxZ6WqdunxuVg3MmK9pYNE62m','admin','ak_1f4d3d4ca483bbb7','2023-11-22 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$kpgQD5/ooDcbBkygVzXJC7egXlv/JvHk92Inyo2rAW9od9KncexZX','admin','ak_4d62ec08a7447ae5','2023-05-08 10:20: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=37789;

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


