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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$a5P8bpnDf4zruIn//pEvJJXjX..BF8LDCcwe8X3bkSX.K5wIB6531','user','ak_9864a9ec4cbbdb8e','2023-12-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$wlnvGGD6y5rkQdA6QpYNXSg8Cd6TwosqRYRFWiKJhMhsb3FRprWE6','admin','ak_47815954b5a4e49b','2023-08-15 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$.Cn.F.qaSV3AZ4LP3rNWSXAOOnPKMEGffZE7d9X7QBX5eQYj8aDii','user','ak_7c2d418b7617c7d2','2023-01-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Cmr.9JNt92w6DOFkGLI9M9gJrDtyIsWQGrAoiJflHCVvspMQU7M.Y','admin','ak_b06c43a9b1a92f41','2023-09-12 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$XK5.ciUKJGA.d9tP6SOvUnYlCAnMxB9Tq9zTEo4JKBl7axAeMgbFY','user','ak_058d05bea4de3cd1','2023-01-08 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$D3K6Wal0..2a/c9VKMKlo66vi4k6UtwMfX3Pra0NoBfoeITB71lET','user','ak_54b9c7a7c3665ded','2023-03-25 10:19:00',NULL);

