-- Host: db-master-1.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=36645;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$EJstcPU4cSU42vPisLlG5QQVHEdmTeUa5SgwtCz4TESnyO5CPafue','admin','ak_014cd6bd0cd20c5e','2023-01-16 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$.QEoN5Qa1sFvDNQLlYhpRcXqUJA6ItV7VT4R3naqBMJUReBU8FLqd','user','ak_08b62e2cbf33e923','2023-01-07 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$EN.z7/4xiXsmm5Z7NSHyvDTGEE8UnnafSyG2T3yULzbV7ImA9JRZQ','user','ak_450ff0bc87f39b3f','2023-07-21 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$i/azIjFaBA0Wdmnc2NUk2aXGZ7Ri26lWNSXbEDzJttIxG7P0BMrXU','user','ak_e265daaa146670ee','2023-03-14 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$4GBKBebrlvGjtFM2QDWcGS.DZTQzu5VHAZNpbvsJUZS5DT.9FttYn','user','ak_b06a10009bb35fee','2023-09-13 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$WWHLin9d7XMqOrXXtmLdAxZ/3FQp4tnqEKjUO885Vyoo7LVPOtrDp','admin','ak_b85e0f45e81b18c7','2023-10-12 10:06:00',NULL);

