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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$zsSOz57cRvmkJEWM8BMgml/.fw1f0lFEWMF8f0obg6kmiqhCJlAHq','user','ak_fef1e3689fe29833','2023-01-04 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$Ay3haPQ2i7KapKQrsJc1BEf6bIsMmC8CQIVcaye8GThuvIYxKKcV5','admin','ak_1c516f80a5b0ebb6','2023-07-25 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$NKaKw9Mlp3RCiCOAKWOHhoZAVQXdb.g6Z79spQV6XLvuyEil4GuWN','user','ak_76fd5f9a5cd9df27','2023-02-19 10:02:00',NULL);

