-- Host: db-master-4.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$7szxwnBLzyQ84kEZeHE1VVRkOHvWF4l6bI14PT14r4/gs.cCJaVGS','admin','ak_7b34f15ef9a0e04e','2023-10-22 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$Fn0C9lNnkObGHpgd7M603GofKdPu4ytgZaVV9JgjuahUgzCxGoFu8','user','ak_ae839e63dd79c88e','2023-08-13 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$quolrXSXFhnXaUK1B2GIZvxNTQoC.gXbIjnGVaf3xu1mmuair2eiA','admin','ak_6ec34ed3b10dd25d','2023-11-14 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$cZj6hhULWvrNhnZ9e14220Oc7epYkjU1IVXbdElrPqZp6H/ioqXCm','user','ak_8714947200109f4d','2023-08-13 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$ysF5hV80YSOriadDGT7M6s8XDlmGPzQh/EzoaqMljH3S27OJ4PHYt','user','ak_8d2a76a0a9e971cf','2023-02-27 10:04:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


