-- Host: db-master-2.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=41331;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$LOfUPwHPV188dCb24qxMR58HeB6mOtCIjOrOiE/bgM3QW.8Rpli4z','user','ak_7e891111cc97dbcc','2023-11-04 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$596YPFRlFhgZbXt1Ry3UrpRrzA2Hxa/PXOdt2kP8SvV2uALKpFTS/','user','ak_69162ea752b83a29','2023-02-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$03L8czI3DX/xxnKtFogmevTICfvEktD1Vk2TjYD0cdgF3r3lIhD42','user','ak_904fa5b0a9a861b5','2023-03-13 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$gGM2R1MAMh03okiJ9EtvHNmSsbtdN1x07dyamr7j65SNT85gx7bwZ','admin','ak_6b66c5655f2fa2a4','2023-01-08 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$uDfi9FW5M3vT0DKBPHb/XFufsKPpYT2yGeDQhRhwwGTZZc3ey/cbH','user','ak_085721e6f05553a8','2023-05-03 10:04: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=23956;

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


