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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$ohOOP7QexAbd/MdxIpg/7iMkKbIYQ/o83dpMh/9RJFC3O.SZVhgte','admin','ak_01a3e21e68066dbb','2023-03-25 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$oTCiVabdRH39ZGEJwaGoQTPXDqpyAtdXhucabWgzl/itjtN9fEt0p','user','ak_d15e7ebb7998a698','2023-04-19 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$dZxhRHClloR96zdg.ovq71uijIIMR.KNvWAUOaL6elQDfBI0xDuwm','user','ak_0f5972b509111894','2023-12-12 10:17: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=11592;

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


