-- Host: db-master-5.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=20405;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$GtBzan8j2KqsU.2xSciRBh/dqaVFTO2X.wsV.TWKcyOVnDBN9niI/','user','ak_24137c66b33508fe','2023-07-07 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$AS9R8L.3zztjDLaFch133kDqu513w.hDAcB2weUAUbEvh3CKLDilk','user','ak_6cab3a56924b2d34','2023-08-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$LL1j.dJgfzLqTXC/WBa5TmQbz6pQJy/EdB5kitPXBrhzlnTvXBRBY','user','ak_ca1b445bc03856d3','2023-11-16 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$6ZQ7.sIfq5a45ocm/wkoHP0P7KZVXfoKpq5c52rdbM4f43jCk8d3z','user','ak_6f74c7c45a4f2436','2023-11-01 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$xkKUrxf/hduH.D2nLDgNVnT4i7B177Nm0NbYrI9m8YQ395KDvPPJU','user','ak_235c5c68a751fb9e','2023-05-14 10:13:00',NULL);

