-- Host: db-master-8.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=2898;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$6zUMY0Z6qQxiJYE1G0GevuV5RDj9/eoBDHC2zTgyEyRXafML9Exu.','user','ak_fd6c52f0bcfb4ce1','2023-07-11 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$bBIs2BSmDjPl1Q.SiNATphYE2SBllJdlwcljrx7.vHt9Axk2JlNqw','user','ak_f0dfbebf79fd9bde','2023-04-21 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$43TXvo79Ei0TCmVQQkZjY8J9vHFTWQHXBcBuJZSXd3nvm7YT5Wtep','user','ak_fc44cfbde34598af','2023-06-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$d6UyUdjbyvS67aSCYdVN9ADpsrsjDw6qSZWntaUfCGXYDAkY8o4v0','admin','ak_d7c9ad72bd53334d','2023-05-18 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$Iq4MOykj0ZyNWMK76qx0Qo3CzjGiurXGOSoc3OWGCb313uNQJEC7I','admin','ak_67356a32ad453fc5','2023-07-07 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$aGYy/uD0Ks9PAL4pyi.BCbudtlUVj10naDFOS/E9COzJ8p89ZMGOL','admin','ak_dc18cbd75944e199','2023-10-10 10:03:00',NULL);

