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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$aujjCRaEFCuQs.MA3Vym27O7J8vfHsNhkDEYnx28B9rUM77DBHUlG','user','ak_9a94843f707353fb','2023-08-15 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$n1vJR4yhk.K1OQEyDA48u99mIJ3fnf6xa0ByuoH/UDNAqApJqMt1h','user','ak_3feebc7db20f7b3c','2023-03-09 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$3pT8aj1lLhsTr5tThh0nfqiEdBehC4gxE6youEn8crPtmV15SsME0','user','ak_fbe747aac7285be5','2023-10-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$zzWW/RZ/00Gg6yC64jLAEB9V2NoOB6sfvw42ZZW39bTWGvWLjL.Px','user','ak_de75850c982ff9ad','2023-09-14 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$e7lO.XjBUB8sQRMRNPwAQTn.IsS/HR./oszoRh/VG/wI8CkwfFXet','user','ak_d95b193a90440f79','2023-11-06 10:17: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=33419;

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


