-- Host: db-master-8.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=1903;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Q/eRfV/7ZgHzsJFqGH2rrVuHt45JFr3A95On78wyuQye5xUeEsy4c','user','ak_a7307aa869d96f95','2023-11-06 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$wKF9wiivVVAdpxxW9y1VUnjWQFePlMmB.uEA8o1wm06wE4CZKpJZi','user','ak_ba1a170b8cfbf7b7','2023-12-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$uvow89qGMa72LA3hpkIHzPPe9iERxJQVSxnDFHgbk/Svk55EWQ0iq','admin','ak_6c1a7f7b3e7dc646','2023-01-24 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$OjFMl4F5w.eXSLRN/vHD.L2sMnROehc1CCSuayoERZX2QhVVfYrbv','admin','ak_c55c1f8810bbeb80','2023-12-24 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$aau/E3MtcIhMoNCy0lRmb4Wsv8de504cj.DcUHuyZNAZ/bUOfMRUi','user','ak_170b71fb00dbac65','2023-05-20 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$Go1xUquIuNuECUb1gWod53Z5W5WF6hNv123Y7Pa1ouDwf4ElFE.7h','user','ak_6a4544bb4c3607f3','2023-08-19 10:09:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=13049;

--
-- Dumping data for table `sessions`
--


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

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


