-- Host: db-master-2.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=6697;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$tZetr7y4ZmMBf6C3qm91pePLE5rH4vYmVmiv.6VGYgNZGqkZVPrtO','admin','ak_f7f38a299464c1ef','2023-12-24 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$BjOvVsQu9kOYDZBlp20BNt/z8oYrgvtWvI2i/EUZuy3oYzV0PvRRE','user','ak_f71ae589d974d7d2','2023-02-20 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$5ILLMsf6d/NeeJbWp8sFlTUYsBuufaEiq4S4kC5KTN6QrvlZWak7.','user','ak_48bda36338ef54a2','2023-11-28 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$lp2N9aUKGgI9hNAX3TqTP5Ph9FJhx8rhLvdnDhf4JbIlmFctuvN9H','admin','ak_48b42ea26f4ab462','2023-02-04 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$3lXl2x5uI33li6elKfqvu4qUu9K2FAChsxLNoTJqeC31xTI7eHZEl','user','ak_4578a82062b6bf52','2023-02-20 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$6pegYN3y3HlhOBxcs3sM9vZY.W.cDJacspui26yQQC8HF1dIAWrVu','admin','ak_8183fee4bdd159d8','2023-02-16 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@example.org','$2b$12$slH16sB1OzMYWGo9zmOi5WbrmPy46f2cqas5mL9PbPfZromSRnvbU','admin','ak_becd6a83fafc8c4b','2023-07-24 10:06:00',NULL);

