-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$CRoal8MFOTF2GWsVgtcoY.YWEX.OoeuUKP3WMtZAu6bq2Q9WzRhYp','user','ak_555332f06fa53c2e','2023-06-25 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$fDHBFX6LQsrltdwMypt6EWQZ5xz4Pfe5BY1PNxZyqpDSi4LuSCrdf','admin','ak_c7b5a3f11327804f','2023-04-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$umHZPDnNKWsWIURiPgI0ZwA8WHDexCR8SevKudNZiMXZdlRgZA00K','admin','ak_a13704c577155f23','2023-06-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$cbyYNBMcOhHTVIRBtI.BDuUjZE2PtntrUYhtCsxrE08w/leiI0A1G','user','ak_d52cf3879a0b1b18','2023-10-02 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$YqaOPgongLn4LqSd9mB1opBGEF4PJ1wX32XGp6lTQ9OhhF/aL61yI','admin','ak_252f98ac83fc5f1e','2023-02-10 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$NEEXY5baWKVakJCgtaVq1hw4LWa.L/WNCDHMZs8erTPwkldtDlYVM','user','ak_abc6cca65e0fc67c','2023-08-08 10:21: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=43487;

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


