-- Host: db-master-3.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=26180;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$EMjOcHRnBCG46wrLzhHXpUPuMWux0YgTUlykOVQXdH/FTXRYtLAui','user','ak_d5a416b673a13979','2023-01-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$X2zz8kgGL6S3WgZypEg7PwDmBUEsen5L.zKvf4DwRCZovKifnkAuC','admin','ak_13975d68ef92bc06','2023-09-28 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$UQAxPRx946pwq0zrdgRvjKZMm15bJft3Wso1B/KQ0VOcPC7nRfhtB','user','ak_74021ef59f85838d','2023-01-04 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$lLx60Im7wX819TyHYzp9JtwWB80N/lkeaC9Aolry9pnDTU5oQg7AS','user','ak_d1e1151f837f4d3a','2023-07-20 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$4zoLUFPNQr7ifsfPYx38EAAqjSNGtfMcu9FziDlmkLBY.VhN9CbGR','admin','ak_f1b449dcf176a98f','2023-07-23 10:04: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=30601;

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


