-- Host: db-master-6.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=9833;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Dy7JtcUYqxLBlXEobvUopEFSJs45eAWmef0XP9oils.T6AhCBGehK','user','ak_82e273cb10cb0ba3','2023-12-18 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$TLZR5Jgu5nvOw7bYPFgrlPRai84Ee2XBNPnNaPOnM44jhbpDcu91l','user','ak_7c93689c1cdb84f7','2023-11-23 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$hu7Dj96Kov43fOKyAyx0xb1RXeT1yCA7XF3mcP3Iuw12Upsi77d6E','admin','ak_3d32f927f62baa7c','2023-02-02 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$GKnw/msqajsQCe6/LGBwKk0jhK.vxWW4ZAFkPHeNYnpE0o9krT1t1','user','ak_30526839b266cffc','2023-04-14 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$KF7UDnbteKAh01CH9v4NPKBo6sgebozZ3BdYPmaXxYTUDqXbhth4I','user','ak_0dcea3e29fb946fa','2023-10-09 10:10: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=45135;

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


