-- Host: db-master-2.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=4803;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$oh1X0xVTrMOQXiDDIcEqmvFlxCQy65d2YQB/BaJuLGX0shbX3GMfk','user','ak_dcdb473ce46ac782','2023-05-28 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$xRAjWAXGihbXDDuw4iMVBQCid5SP3nfsayhB9xr7RBEGKDtwiDhe1','user','ak_e4235115dfa33d5a','2023-09-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$n4lcpqxMkYk702Yu/HER0GcWrc3BEb5fSkOvvk840Ginh9N8bQzc9','user','ak_0080f2ecb2e7278d','2023-05-25 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$mCRKtuTdANCzJGwyaz4gUfFb9OhL/3RWR6HwNqLRFWXz5ChvaFHfG','user','ak_20725c3b75d695a0','2023-02-11 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$HdL77Udbla4nrnukOmuOKCIJCsFHQvKy.kyOztGnyPu/g1CWOVxeM','user','ak_29010c9a05d15512','2023-06-12 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$Wyqm5hIp7gGAYZFEq6IjbRteOV55WT0DAEB.zTpZ3yt.o.fvq.G2g','user','ak_e22fdf1833964c32','2023-09-17 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$fFvQ7eM8OmL6PynvXda4HSM5xSKVe1L0vem2F6fHK222a8MO6Z228','user','ak_70bd10ab9ff8d5e6','2023-12-12 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=46821;

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


