-- Host: db-master-2.internal    Database: webapp_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=9663;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$pXZzeY0kOvdZ32YNt1F6enkLDkH.M/fd.V.psRzUirKrM2bA7SLc0','user','ak_eab4e71f49609905','2023-01-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$K4SJR4taJtINeQJqcPEXbRgOHpwL2mibpVyQvte102NEXsyyxciV5','user','ak_f9dd5648d36772c6','2023-07-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$NaTsMTW7ixWN0z.s8xRPLdnG3jSgSGEvP4Ap4VRkSrLhuy1OGbIKj','user','ak_6ce6ee328c2043e1','2023-04-07 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$wadu4y.jwaeAXd0YgH3cNmZlTLeKDA7OvTKu.Ct/.df8Z3zPyJjsi','user','ak_1b3b7c774d6b6d82','2023-05-21 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$mTo1bIW5RcuHgpK8M24cMyMRWRB0oEOkONZVPG1veeyze4hkaqxvb','user','ak_27a1d71d9be5c028','2023-05-12 10:12:00',NULL);

