-- Host: db-master-5.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=46754;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$sbfUVMPGgbvBNFwnQ2AxyGk6Hicq1l49nK26rZJxfMjGV/23VMR3R','admin','ak_5747ce9d7a8c47ae','2023-08-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$mJklDpcja2zKIzF8rAGCdGLNxR3o8Q5RGltrTYEOXkRCeuamLQMlV','admin','ak_65daec7b7b45f94b','2023-10-10 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$gkH1mq73sNesi0adzLVIJcXC42.Jg88GgkD9fYIh6YH8TnNox90k7','user','ak_a050aafdc3d8a468','2023-06-11 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$Po92EiPLSSHzokuGAVS6WrduiIWcKAf/BoSaATZ.WcAMCFKQ.tASS','user','ak_ce647cbac1d8430d','2023-11-03 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$7hfT339tuULX7HMFRhKigVSvvrDRrFbCOVDeOEfHWc5/LxcFVg4VD','admin','ak_1f93686e12570785','2023-02-06 10:06:00',NULL);

