-- Host: db-master-4.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=39399;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$cdHchJcaRaVFybw/bnlv08vtc3aHCUEB.qqaOqwl8nIz/k6x.QZ5a','user','ak_db73d97641382889','2023-02-07 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$YdMqbqZKlXAACpNRDQEAB3DEPlaIFBZAolm4L7CRuzD9MtTSrOkce','user','ak_169098316233af55','2023-05-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$MLOu/xEtBQI.TtcSp3kcGMkfRpFE1BONskSFtwHdeNuPMQcK61tDz','user','ak_34463b3fac9c101a','2023-07-24 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$v7vbyX.pPJ6dF89YVx/PCknIVkbff5MAoCPnAvdDw9Nb1dAOju5hH','user','ak_ba154f9d2383e3a7','2023-05-06 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$C/VV0uooQQ/npdMMN6Ll4EgVxV0m0DAKx34B0vM2M5l4zxrOtwC1F','user','ak_a565ac272fa533b5','2023-01-19 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$Fn4bqKaGyjdlbTrwNZ5O8ePwmbIYd1cYrSfVKmNmsVNQCO9ikqu7S','admin','ak_a8726d8d97b3ee3f','2023-04-23 10:06:00',NULL);

