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


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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$gMn6n8ksP.v61TtgxZc7bc31zsWCdKQytX.hDcF5QR5b/HoaY.wE4','admin','ak_73a0f7715f626361','2023-04-09 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$G376Cu6vWBvVx5NY1EwjWHtkQL6UiK/V202nwzA1XrgaJJEVU./Py','user','ak_f39e9aff20ec1693','2023-03-28 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$qVockkiuntTB6/h5J94wEuq/.xQbLb1I8ggYWt3HOrRnqvfzPB4iu','admin','ak_1777e64924fec591','2023-11-26 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$iW3PHQ3l/N4UVmPMm09fZzBDdj3yxxFUKNrtLyXoPyhvULRinEcuE','user','ak_da40841cf6608428','2023-01-08 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$Q9WujRPMZjasOUQdGHMEAXjBq2Ut9KBAvHnzWtMTIDyeUnVliSI9j','admin','ak_761a4fc7da2725f1','2023-09-14 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$ZmnURX8dtkJibcGw4bzhCRtm2nXmouzCa6KqIMqgQcz1EtSWPTCla','user','ak_fa411f93ff4b41bb','2023-01-28 10:02:00',NULL);

