-- Host: db-master-5.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=20227;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$xtrOGIpU53MCQb9qdI02PeQcwLwRNyd28IW8Uhs0CfjIJBtJWaNuU','user','ak_966e1a0be0bca249','2023-10-13 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$yu7US13dILKSHGrjNm.am9KAR59FxgOwh2hKEVmIF0HaI/ulRR3D6','user','ak_0e3a6a18f0bc57ac','2023-05-25 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$.WugVJ2KGZTimr0XFIOixDDuI9r7.IQcodtI81L8p7UdL7JOAT/ux','user','ak_0154801bd4c8fbc7','2023-05-24 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$QIAFujGEXX28mHg4/mPuKjfv7/Qs5I2aB156nrWxjyoLAiq8kKgXB','admin','ak_1c19d779df1e807d','2023-11-13 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$YRqCaOt9xCmpgwUOsMcAHsv733FoTCjXgeXBcgBC9D0Y7GUPovteV','admin','ak_3d7b20a5a51391e6','2023-05-26 10:11: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=18207;

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


