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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$Uqy6MTq5Wqhh0QwsEUl1nR7Fj30VR5NXnegxldbWXRWj4AG6xFRFv','user','ak_21e0fe26290bda91','2023-12-14 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$bYo9e9IlV3UxsBauagREv5XV5mhjDXbKfvpZWgUWtBByNS4pCp3rg','admin','ak_eb44db27131c72a4','2023-09-06 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$W/ous8scSYupmDF6/0mrouEfLqZV.Hjrh8m1L9e36c3u8QmaDiesa','admin','ak_1076a214bbf2f0b7','2023-03-25 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$exM1zU1eCmpU0XlL61IChs7JiLwuG4nW1RN5S2sI0AMqW.TWVq/I2','admin','ak_20e763f87d462033','2023-05-03 10:04:00',NULL);

