-- Host: db-master-4.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=31274;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$igeED4t1yG4I2ZoqUo50q.ICUqjBBx98KRwymrtBa7m4FW5Tgq2NL','user','ak_d4ff806f2e4a0895','2023-09-15 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$zbEhP25hc/yD7MLcOFugMlxvJAgzTkyXAXLZRMtDiJdw7RQLQ7Obx','admin','ak_e3c77e1f7647b27b','2023-09-01 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$WvQHXn0lSNqY6eWB7F.uwbnR6UGXsEsrprfaN.9CFWj0Rof3Kq8Cp','user','ak_19da537182af9815','2023-02-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$zgC.8att7z196t.hhXKW9NrPCF9VSVEqBpTKHGmPWd6UYykyku23F','admin','ak_f77d7cb49b77178a','2023-03-04 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$uZ1esAyk6Dn3kxee4ZRqu7oiB0Hl3N5m3g63hYSWIAseUuPQF6dae','admin','ak_1cfafde24980b9fa','2023-03-23 10:07:00',NULL);

