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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$9swyGXqvyNYnLKO2n2Mt.vnQs.yGce3exilZZxasq6qjbl9sqPjVu','user','ak_d0ec6a303ab0f172','2023-01-11 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$BhHy15.KXA6bH1wjob2Kf5OaAhpsn5Mt43tHG8TvokxoxpYAZGv2i','user','ak_92f6098b3a60d4bf','2023-05-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$gU/CU5YYQw6vRVhWxXYwuf85s66iKhLXKKzvp873LUIuhHKjKdAGo','user','ak_fe61cbd971aebe90','2023-07-22 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$nGX0g6UR6CMjaq8NNMfeq9yYeibfuJq8xIkCD6XKpgh46C/bxai3E','user','ak_4211dfd822f836f1','2023-10-27 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$e.mLt1PLRZjOIfGCB7J.scy3DONDOty43CVHm/T4QkMnFk.BDHukS','admin','ak_be895c10c8567460','2023-06-16 10:15:00',NULL);

