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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$IG0WnozOuM7Frbz9.bdKVY3x96fF2f14lat8p4N9JSYbl3TreTIOj','user','ak_2525ac97e12cf897','2023-08-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$fpwY0VYLpzBRtnNnOrlFqMT2jsfUdemOlSrIYtKqqO2AcEwA7hm1F','admin','ak_cee100c3f5609b0e','2023-08-17 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$GYb17ZpmvSspg.wx7Hn3lKOc13CXcCNhxhQ9myYXY8Q.rJNoOG7KT','user','ak_ead00c8282d70e6a','2023-04-06 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$8Kp8zMgxSBtvvMwj1jc9YyIs6nGfy26he1ZMXxZDCwAmq0J51397K','user','ak_206d9c9755f2478f','2023-01-08 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$/dNep0tA95jIXgs8h/3ruAqhHvTRzVYgZMmLViBHhB6/cPQvWuEw4','user','ak_a6dfb638629b6159','2023-07-16 10:22:00',NULL);

