-- Host: db-master-4.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$SB15.l/kkfBlAyIHf76fE/LEgWnPn9vwe0PTh1aKqcxLB56IQvdyB','admin','ak_d1790d9af0a8510f','2023-09-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$zDfu5wylMI5Kd6HzSyzElVceJ/LT8xoN42q641byr44gNFw5MazUK','admin','ak_df54dc213dfad8da','2023-05-13 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$kSZ4ZI9OQGHcf8rL6dpzEptuG/.kG9BSdP8VmWD2D7MyEs.bQekN6','user','ak_d59f9e4349652867','2023-08-19 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$TyKCHnKL9fqwzxW4V8k5D71QcYi1ASuKKLmVQzHt6zU/IDUP2YM7s','admin','ak_307d4f8d07d72f33','2023-07-10 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$hev.4eXWgL8rij5sfU64YSpbO2Iywo.d3wCqjebz5VbAGdC5709pE','user','ak_f069a5a8a0357377','2023-03-21 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$usq51YxXw13.FcAF4.LAf/0l4LvQAd1IoioU7N8gEtAWU3LFmel/G','admin','ak_063b519556b43a6d','2023-08-05 10:02: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=44557;

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


