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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$ip6zS9xw/MoOdEyOnotxnAp9Rf0dG0pXQFFTCYpOAKCIXlduQEtuW','user','ak_11e1f65e943a4603','2023-01-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$yX3aTy7ptloicvYXo3m26RpHu6EZsvYDXw4RRtHpY8mlkapTVQJI8','user','ak_dc476164d64ed2e7','2023-12-20 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$kq2oHOD8WKDLFLA121VO1WpGP9UJmja9VRI9iohtumDyf1VWvXC0B','user','ak_0efcf26f9b16abf6','2023-06-08 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$4hYvtY28Lp66ZSVBLaQpXArzT/Z76R5fOB5hf0579UsuyYRiRG6ju','user','ak_9c31ba97a07f1e03','2023-02-19 10:00:00',NULL);

