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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$uONnuAs8ClH1pMHNvXKNTBqQ/Ft.DuimxBoM3bcp3gFHEzlC2bI0k','user','ak_417816521abde7f3','2023-01-26 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$s589ObT4lmAhPJA8PsIVZOmshksp5v1qKlZImQ26k5U3Wx0bXfKzm','user','ak_988fc9966dc472d2','2023-10-23 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$HNS58GBj6EnxxDeoRS.MqjL0bJiWg1glJ/D5kKlg4Zn1AoviYM02O','user','ak_a683ace5e0954c87','2023-01-09 10:02: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=19085;

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


