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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Vjxj/rmXfNDwga9YG09cO9dIGfdWmyRzJVLfqSDI2ea4o6LyRnuVi','admin','ak_f9624deafba0feda','2023-05-15 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$TmVm5O6orDyCNY2T7EWEs65wZjtvqMoSU3rb55df/Wz2VNGMeHMZm','user','ak_b917e8f5a9912e04','2023-01-01 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$7NphC0KRkd.0QzwiA/7ysp0ApNxc.88MvOnEyLPYOQcYRM3c51Qt3','user','ak_4c997ac0e93a3c83','2023-07-02 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$UYfdrjeUJbuAXy9I781rkNlFDJ3FBPPA8yH1ZEYop0GV4IPHVdfX1','user','ak_a7585e54f42e47de','2023-07-05 10:13:00',NULL);

