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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$1ExZG0bUsnLfd3.HA8mk7eE7Zc7EGGYFz6ZL4UEM1/yYkTQNla9nx','admin','ak_4720a5d925ad8e3c','2023-12-05 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$ZJpzKkaCWJoi7/Tw3IiCvcEHvjjFlGI/NAjLTDaAEElab91AsDnzp','admin','ak_f0c34aff3c8b66f1','2023-11-28 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$MUPW2LKGGVkp8S531pbXXM88B4XacY7H86NfTRb2VyfjmPp6twpE/','user','ak_ce8d20a1feee7557','2023-12-24 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$pAJysaUdDuEzUaIhgCFL9nWOuRXBCC16TDn4Bl39SDOfiw2agfWgH','admin','ak_abe5a42fd29aacbe','2023-03-27 10:00: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=26125;

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


