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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$C9JZRBpQUUkEf7PdGp.Tum4ZPFkL2JQf5foeQcA/P/tYQMEiibsDZ','admin','ak_8eb525be9abd8660','2023-03-07 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$npVlFCy5Y/vn9xGW6Rhitu5vbjWQ04fk1sNdfgW8XboF7DmgEe0gj','user','ak_5dbe815bdf6cf8b8','2023-05-07 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$DglWUu.aDK/GQemvcFJODikFP2FPpBAsRjTqaNU82JUhwqJ7udk.n','user','ak_66ae7482be06838d','2023-07-06 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$9mn/Z3b9.QxHUfbwSNisHkQ/7xaivv/2KaZT44nkyiwGQzkmKZYJu','user','ak_5a9f9b41a20ee2b4','2023-06-08 10:07: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=10540;

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


