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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$7CTGErU9Ot13ynW6LiaRAgsI0TcJH7dPmskoF8.6IrBYjdjhIuNvg','admin','ak_8b35d26676408ebb','2023-04-05 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$xYgHnweUhA2g0ySVrTzttwoxpAXCn.Fn1onsH2wYAwEd7qQV.8eqq','user','ak_f0b6f455cbf78db2','2023-09-03 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$AV0s9mIRUArK1r79B0lC1UJUJPJHr.bZpN2XrPmBEBWrE633yiXwc','user','ak_547357d8af7d1540','2023-02-19 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$5UzYsHoHHX9o1eYefhrIqJ5wDV0H5Gx6Ynn2GllbeD0AfKbOcqZam','admin','ak_eb5a22ad2ded65e3','2023-08-13 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$ZLu1s7uFCMMAuwqEeW3QTUjEQOFo3KUnNEOgzyooek1WCL61dbfX1','user','ak_ec830314eab173a0','2023-07-20 10:03: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=5505;

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


