-- Host: db-master-0.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=16982;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$NrhcCnYIvc5aDT5oogEfCbf3O9bjCdHoKQOpZplEovij5bDDJ1lmJ','user','ak_e94691402975f4c5','2023-10-14 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$virrpftVKrTR20sTT0fnMv3BBeskO3GchEK/xfzq9sY4bSg5ZrV9r','admin','ak_3a12b393f545b096','2023-12-18 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$LHHxr7frFRFJ7UaF3tbU5ZHkgIy3N8Z/eNJrYZO.7skDis7gwLFJs','user','ak_0144017226dc2701','2023-05-19 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$pC60t/ywnG..NdtOZeqBq.k/ptSbwP3kQIvyEVubE.75vElpxczSP','user','ak_f9efde4eeaf9a8e7','2023-01-12 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$Mzyo3hsmKeoowxLEPO7ulQYfLrTPphM5fxZA29WioBF.UO4ZZQaSE','admin','ak_b4f527c87a829116','2023-12-10 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$Wk0p8FpL5yD3jhP.7oSqJ6IqUwTDuFv5akqiEVcogqmkuRT1FARph','user','ak_c208e414119e6624','2023-07-16 10:04:00',NULL);

