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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$aqOTKapBaAxRBM7eQgGCgT.1Dn8IQcjFPcTK0SOa0pd7Lp26COTci','user','ak_5b6a326895d31582','2023-11-20 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$r0EeOm.IKrWU3J70s2r6rKoof6TkodopT/86NiZSXvCPjLjDXCwEZ','admin','ak_2bcc949fbdd1e01e','2023-10-11 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$TLzL1DoAhXJPgw660j/2qZ0voaOYYRMFbf3Ck0thcRuNvOayyhVGN','user','ak_64120eb1ce852882','2023-03-27 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$q96nyGigdqBMt5F6WHRq3ipvINmL/ZGSBlgc3cy50r2EvkRE3NdXM','admin','ak_15a23c33e3c5d13a','2023-06-05 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$dY2QmLGzqneGZ.3j/STzX38UlB64RPWCbTAjSqFN.Zq9GwJ201Gx5','user','ak_b8d8705ebf3a3471','2023-02-03 10:16: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=39392;

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


