-- Host: db-master-9.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=9749;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$b3NuSlMn4FbLJRC5e14njHgE/tVjEIDKBbyQxis260BHG5w2RGPsF','user','ak_acb04aee336a37a8','2023-05-05 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$XAA9g3LAxUNCIQTTbwHEm.quJRujsNNE1yG.QggcQXZRzmLlIr2sG','admin','ak_e6dba0977b2eab67','2023-08-23 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$.BbnOGWRPhraMwokZPgWsz6nK7Oe/a/.IXRcs8J24YsibboJ9PH4h','user','ak_09a0e8dabf53d08c','2023-12-18 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$yC1lzOEh99RxMkhDvuzSb9hSoM7cUGAl9.L2cWh.HgDx7MSOYNgVA','user','ak_570841b8ee63fd6e','2023-11-14 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$M135hMo.4ZE4cNe1tg200r358t8q/4azwILBSKulTY23ki8YbiF8m','user','ak_79e31732750c5055','2023-01-10 10:09:00',NULL);

