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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$BfXdfeYpqK1nzOs.tlQUK/Xawc82XeVM9WB7qPEQilChB.gxAtoiB','user','ak_cf83dc122a3cc14a','2023-06-15 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$kqaK9atnsuJbgWbcslaMiIbY3YmaA1UulKm/eF0eru5lkLUkVSwBg','user','ak_047d6ba93da8db0e','2023-01-08 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$K.K88EtCnNjp289Y.7FZa53swolI0b8sljVbEDgas/dU.Emfi5Qmr','user','ak_daa0ee6dbcb9d52c','2023-06-14 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$Wb5bwp0iimPW1y9yoTUIq99Ssrcp4U/6v6JEzgdngFR4oy528HnmD','user','ak_11d19f119f3634f6','2023-11-19 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$uUYMg3efs/LppdRw/BbJ898mHnLv3JKe3oaYOGqT20stdnz479YLM','user','ak_c68ab6b53eb04cdd','2023-03-04 10:00:00',NULL);

