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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$82l5jSpmNFB0jtHdnZvtK5JbUj4yHUonKIO9gn0bPUn1gnwohiogM','user','ak_b451178da4a0cef8','2023-10-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$HIbX7CkzpIhNK3tIGcz.WFZQ4vNw0nloTBHEcoQc3JS0w1mqYQ10x','user','ak_2d7bd771225bffd0','2023-01-18 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$JKdGsOdc7mKkjU8tyQ07C.JX.Kik8F9hU75Ne2KBQ6sBgMsGS9enK','user','ak_fd4523e26718374f','2023-08-24 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$qtJ76vZ1wsnKY1dyivCb0QMwhix0I/jhMLD5FEoixl33Uv2hLYyD2','user','ak_91fda9f677d23590','2023-05-26 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$q/SB/5eNNbAfJAL/EiVIe782tgDkdoFCXPJAByrT9Y1B4KMua5qKd','user','ak_377e0a3f592d2ae9','2023-07-15 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$wE27YJsH4zaBfiGRwiJsRyk4lKtiAbJnCMYwqvf.BziRTk3c6lbHg','admin','ak_c9c2cff4545a1ab7','2023-03-05 10:18: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=10462;

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


