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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$14fouHpUl5Y9d.mYFuX56EWEmDQNlGT6uPmqGGxVUOEByidxI.o7k','user','ak_041bfbc9dbaa9c9c','2023-06-23 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$a7B2fvco5NtI6xmMnjkRJqiuSGSl/oV6lOUNtcw55yKw4fTZAkvsB','user','ak_157951fd3859c3e4','2023-02-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$8RlUYjS/1Zt2n6lhs1pg4Ps7So0ik.M9lV7XF6C1YJ1vr3XcRx/Ee','admin','ak_10843bc7c3fa0104','2023-06-24 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$5DaMut5h7zAit63JxhfTy2iDr7PmUkuIKWMDw8bb2T8exPgLmNZWo','admin','ak_006836149c7477db','2023-11-12 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$m5ziGoNj9ek.PHvyXiXGawzmCTkJcgwbrvsHJ13tjzuUg9WP3XzZz','user','ak_afad0da8c438abc1','2023-04-01 10:16:00',NULL);

