-- Host: db-master-6.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=9883;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$Xz4vIPicI5bf5bDzdZSMG1dGcpFeMcVpSWuWJr./hHpryiYUkT0gW','user','ak_03be585d3984d956','2023-11-28 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$oFaQGqfNqM3kcxNKp9mYRVbT18Ka0ilBXs1hwpIe.ARwzKkUV8lA2','user','ak_f13b6302c967ea63','2023-10-17 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$nwt2PX3ofrxm5yZpQkpCqENLfOiX8/4IyW6xGdrS/d/oXrtceQiQO','admin','ak_6ff22f9d9c7b3ba5','2023-06-15 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$LaxHxpKOGYnBoU5oRyM7hCZJ47yNrYJ6cL4z4cq5XS8og4OGRNOnr','user','ak_abd53d377edbdf46','2023-03-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$4Tdzot2XMOJyQb6oYtmUTQO2N.EJrZqQ3qUZjSDIKFFyh8srn85bG','admin','ak_fd75240a82652ae4','2023-06-16 10:08:00',NULL);

