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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$NWS/sNiGq0GXFZJLaauK8LHfJSAyjV0Gqv2tBcP6.i37ObgrAwZGz','admin','ak_bd1297fbd367e20e','2023-11-19 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$/i1.1/KrSbdePdkg4AAdKFKN5h2IOQBs9xYaUT7sv85WX1mgZZOHS','user','ak_0ce489b121330d29','2023-06-28 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$P6THYiR58j7HEd4M7mJaMoaR6vsBnMI3rxZh1Rq/lvTDKh6iiDJwJ','user','ak_ff26aa46ea9aebf3','2023-05-23 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$AflLPwsVnZvpMu3dt.R827nT1AHgD1NgyWmZfTmtnzpkQF65P92V0','admin','ak_15719a9f9a65839f','2023-08-14 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$loFw83ndI6x25MbmXowxmNEAYDnXME3XRKdCsm2MdAGGML2tAQZ7B','admin','ak_bf1841841990d4bb','2023-01-15 10:01:00',NULL);

