-- Host: db-master-3.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=3475;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$bmW.U3b2Bg5S/XzsrDBa8VQM7M6DtHZQdeu26YRoAUsQasZn.E8vT','admin','ak_ebdf08d4f18a34c0','2023-01-25 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$1ojbfADrZZBaTQDPlPtmeGKag7c3bsiS9MN8t3vjB3Xp84sRWOEKP','user','ak_457f29acab9aa04f','2023-09-19 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$55nCce2i1p6Uh13kBkN6uT0boaRscbLAt1F2Q0cnpjvA13aWKmlPs','admin','ak_94b33016ffce0756','2023-08-16 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$tYViXphpAbvneQQp0cBTuQiB1Ur5QqOzcx/tAEedd7atw7p6IDPm8','admin','ak_7d53ab0c2e97e5e8','2023-06-03 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$.GpvKcWglqQEzbkcLJ4Bdyz36mMmPiS0Of.HWypgj4HnLMoucWB/A','user','ak_2e58e21874172883','2023-08-19 10:18:00',NULL);

