-- Host: db-master-6.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$smdIJuLUFpDXpf.Vkqqn7FPuesyoVXMxUHhn6gqZvNP.B/g7vPCk7','user','ak_cc762f38a06a84d9','2023-10-03 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$nC/cBWXnLgVYpUWxefT0ZWGyZUJgnC7H3hTyWoeN7F6i90WO6LAPX','admin','ak_f18e1ac4950ff61a','2023-03-22 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$0wUo4R4b3g8mb0U.7d0hKwUXYkx8pC1LCt2X/qKj5EDrlqathcvZ5','admin','ak_920a0dec3bf3fc1f','2023-04-01 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$hhmiB1eFZNkW2LNJ5C/bVCV/EWIZkVe1HGcjqRFkz4syLKv82n0O6','user','ak_d74fab4e55784b87','2023-08-03 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$Co5dNvZPkerfUBJt0OMC5ylDvkSSIHIhsJQrbNpfjsdE4Zu.6Dp/f','admin','ak_305aa3fa50b4f4f1','2023-10-05 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$J2V2jwvcsqmXjorHKM4LpMnI8N5xbYBaQSrNcaCPwhtDyA1iccFEK','admin','ak_b1a00b99479d7f6b','2023-01-07 10:06:00',NULL);

