-- Host: db-master-2.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$tSpagPnvBtsLHuMWEVTz2gv2mYC0zEe8uO9PBAgeYu5w2jMzNlWEz','user','ak_9a1530449cfff53f','2023-06-15 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$a5xNKO8LU95e4YG99CFZBKIuycZgJi19iKYVGK.W3m.nbKdjP3/7z','admin','ak_63e5bbd0bcdf7003','2023-04-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$WZ8wYeVGYB7A5TDwuDV4W77QhnPRJmpNqSdeRkLA83gdkIdzMB1AD','admin','ak_c02fc3bf4971f26a','2023-08-02 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$us8R3j8F1DuT4ofoVUUwiMUpoSB95zwfuNFKLdJeiBHZLakXoHz8/','user','ak_b6ac666e9caa15e4','2023-07-13 10:10: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=26599;

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


