-- Host: db-master-4.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=21614;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$uBs7hSL.UTCxF20NGXyN706U5qwEU0gZhIoW/0WTnqSZ6qaTjMg9g','admin','ak_5cc491b217965b85','2023-05-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$sTd/irO3ItPBz3EOwSFhG6MtuM7KIsAyIYwiy26fLlnZN8vhxpeEO','user','ak_cd532c7de83e4108','2023-04-11 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$wKP3BiQnZbCEsEf30KcJZiOGxX8TVyB3aiiB2AGzVEceeD7KQSktx','user','ak_468fcfa51b43d0de','2023-02-24 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$r94O9wc1zsQZvOu2D5wEzKo6ol39GIiE6laOUakHI8YaLvgyn5MFd','admin','ak_5c12804a72ce229c','2023-08-15 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$3rhe6L3iPYj8Bi3WlEi2I/1sFODe8eahQ7k2/LXsBe2cIsw./c7qb','user','ak_75a0d3034c2cae4e','2023-10-09 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$t7irlHwPjHAZnIKKuQNZhWIXUYznQTxq8pK6GxlBrQsfBN08Hp79q','admin','ak_e6d4e84fb6171880','2023-05-13 10:14: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=44502;

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


