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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$v8i/mGvEKKMr2.2afiVWhvhrt4eAehndMtCTqumEmcfY7yInmnEPN','user','ak_1e84a1b6fd993e47','2023-04-06 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$zefLS7xGQQeaUgNxgOJ6MRoyHwBOmtJmXAXzayqSLTuCe3JB0momB','admin','ak_c6cb54e2155cfebf','2023-01-24 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$i1bpqwdZ6.PQhv9d0WYNySAOcWic5vzC2IWjhI9HLAyRgMjvy8ayQ','admin','ak_92287f034eb61b9c','2023-08-20 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$.Fb/PxPi4BtDKgDOV65H0EGheK93P6VXL3uCP1gCDavJc4/HK8O4F','user','ak_8baf0da619575063','2023-02-03 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$7qU6rNNKXfSI/lnun6brKTxAbz6BBah0BcWm5eaatRJneq15FTVKp','admin','ak_0a503ee3d44a20b2','2023-10-28 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$VzAOy2O0yeokgFr6U5KZTLaIyN6ht7AGWabDxoZffmlRlzp84d306','admin','ak_fffff413ba0b71f5','2023-05-09 10:15:00',NULL);

