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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$y1A3nZ7YxL9i8rDEg2ePduzr9RQScgdO6OVGeSydv13cyWdJ4urNU','admin','ak_ed2b248e3af53260','2023-12-18 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$52rqV8LAmryqGn0xoGVSW.yCEn.ePbUpaw78PHqps1NpcSnj8C8JW','user','ak_f06858c87f1184be','2023-09-08 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$7Qt4cZr/vI0i09IHHXFf4XuMibV7zsynyyZBKJszAGnfuqMrhG83L','user','ak_85ff8450f7f3835d','2023-09-13 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$bPDxc0O0HooyCNT1lYpMPqIZG0lOe/H0/MxvI2AY2nJtrTJT3mxYd','user','ak_d8afe2cd443a438a','2023-01-15 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$9HUMkLodfEY1wBFsOqbI2NKFH9ldjoVgrCXyheFEZjCQApQ1LTUsx','user','ak_7796edef52480614','2023-04-22 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=4952;

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


