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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$.jBv69LDOHncaQpE8ple5J69hwhEAD25U/B4KdgjGmabyhQfCpZAT','user','ak_5f639a3f3fc0a8aa','2023-01-01 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$Vh.281hDTPpqqEkMBpkke4oOioMn9cthJfU8XJe453OrbMdlfnwJ9','user','ak_8fe963834d4fe1a4','2023-03-05 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$6IIa22Gi6sr/BPqId7UGgKQycNzlaesnHP5YBh/VMrbM6BjgzfBBv','user','ak_68d0df2490c31f97','2023-12-04 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$sPSfsHMJEjpYhc8NN828iDV756guMECxb9/PBcFAfBheOIUeDpHsB','user','ak_61d367754fe88902','2023-07-07 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$t3I2NVhh08qr/mHe9amuh/FSWJAKXHaQPSEpNdfOBNKpTj7BtnHnS','user','ak_ce7ddd34ea12b4b7','2023-09-23 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$1C.MZT6USnfwHfP4ISKRl9sSpiWWhwQxMZepEtYC4jfj3KskKO3FT','user','ak_0035c540148f165f','2023-10-27 10:06:00',NULL);

